Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1B5969FB273 for ; Thu, 23 Nov 2006 14:10:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 43231-05 for ; Thu, 23 Nov 2006 14:09:55 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from westnet.com (westnet.com [206.24.6.2]) by postgresql.org (Postfix) with ESMTP id 037489FB264 for ; Thu, 23 Nov 2006 14:09:54 -0400 (AST) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.13.8/8.13.8) with ESMTP id kANI9sBB002610 for ; Thu, 23 Nov 2006 13:09:54 -0500 (EST) Received: from localhost (gsmith@localhost) by westnet.com (8.13.8/8.13.2/Submit) with ESMTP id kANI9sI1002607 for ; Thu, 23 Nov 2006 13:09:54 -0500 (EST) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Thu, 23 Nov 2006 13:09:54 -0500 (EST) From: Greg Smith X-X-Sender: gsmith@westnet.com To: pgsql-performance@postgresql.org Subject: Re: Direct I/O issues In-Reply-To: <14171.1164300342@sss.pgh.pa.us> Message-ID: References: <14171.1164300342@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/203 X-Sequence-Number: 21973 On Thu, 23 Nov 2006, Tom Lane wrote: > * It does not check for errors (if it had, you might have realized the > other problem). All the test_fsync code needs to check for errors better; there have been multiple occasions where I've run that with quesiontable input and it didn't complain, it just happily ran and reported times that were almost 0. Thanks for the note about alignment, I had seen something about that in the xlog.c but wasn't sure if that was important in this case. It's very important to the project I'm working on that I get this cleared up, and I think I'm in a good position to fix it myself now. I just wanted to report the issue and get some initial feedback on what's wrong. I'll try to rewrite that code with an eye toward the "Determine optimal fdatasync/fsync, O_SYNC/O_DSYNC options" to-do item, which is what I'd really like to have. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD