Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2C3B19FB2AC for ; Thu, 23 Nov 2006 12:46:04 -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 13589-07 for ; Thu, 23 Nov 2006 12:46:00 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id CE1729FB2AF for ; Thu, 23 Nov 2006 12:45:48 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kANGjgTG014172; Thu, 23 Nov 2006 11:45:42 -0500 (EST) To: Greg Smith cc: pgsql-performance@postgresql.org Subject: Re: Direct I/O issues In-reply-to: References: Comments: In-reply-to Greg Smith message dated "Thu, 23 Nov 2006 01:30:24 -0500" Date: Thu, 23 Nov 2006 11:45:42 -0500 Message-ID: <14171.1164300342@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/202 X-Sequence-Number: 21972 Greg Smith writes: > The results I get now look fishy. There are at least two things wrong with this program: * It does not respect the alignment requirement for O_DIRECT buffers (reportedly either 512 or 4096 bytes depending on filesystem). * It does not check for errors (if it had, you might have realized the other problem). regards, tom lane