X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A71DF14B280B for ; Wed, 11 Aug 2004 17:51:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61576-03 for ; Wed, 11 Aug 2004 20:51:36 +0000 (GMT) Received: from lakermmtao09.cox.net (lakermmtao09.cox.net [68.230.240.30]) by svr1.postgresql.org (Postfix) with ESMTP id D244F14B27FF for ; Wed, 11 Aug 2004 17:51:34 -0300 (ADT) Received: from [68.12.228.23] by lakermmtao09.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040811205119.UCAV20883.lakermmtao09.cox.net@[68.12.228.23]>; Wed, 11 Aug 2004 16:51:19 -0400 Subject: Re: [HACKERS] fsync vs open_sync From: Steve Bergman To: Josh Berkus Cc: Merlin Moncure , pgsql@mohawksoft.com, pgsql-perform In-Reply-To: <200408101018.32327.josh@agliodbs.com> References: <6EE64EF3AB31D5448D0007DD34EEB3412A7446@Herge.rcsinc.local> <200408101018.32327.josh@agliodbs.com> Content-Type: text/plain Date: Wed, 11 Aug 2004 15:51:14 -0500 Message-Id: <1092257474.18945.37.camel@voyager.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 1.5.92.1 (1.5.92.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/167 X-Sequence-Number: 7803 On Tue, 2004-08-10 at 10:18 -0700, Josh Berkus wrote: > Guys, just so you know: > > OSDL did some testing and found Ext3 to be perhaps the worst FS for PostgreSQL > -- although this testing was with the default options. Ext3 involved an > almost 40% write performance penalty compared with Ext2, whereas the penalty > for ReiserFS and JFS was less than 10%. > > This concurs with my personal experience. > Yes, I have been wondering about the relative trade offs between underlying file systems and pgsql. For metadata journalled filesystems, wouldn't fdatasync be a better option, since the fs is journalling the metadata anyway? With its default settings (data=ordered), ext3 is making a guaranty that after a crash, the filesystem will not only be in a consistent state, but the files (including the WAL) will not contain garbage, though their contents may not be the latest. With reiserfs and JFS, files can contain garbage. (I'm not sure what the implications of all this for pgsql are.) And wouldn't the following comparisons with ext3 be more interesting: ext3,data=writeback,fdatasync vs Other_Journalled_FS,fdatasync or ext3,data=journal,open_sync vs Other_Journalled_FS,fdatasync Just wondering. -Steve