From: Steve Bergman <steve@rueb.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql@mohawksoft.com, pgsql-perform <pgsql-performance@postgresql.org>
Subject: Re: [HACKERS] fsync vs open_sync
Date: Wed, 11 Aug 2004 15:51:14 -0500
Message-ID: <1092257474.18945.37.camel@voyager.localdomain> (raw)
In-Reply-To: <200408101018.32327.josh@agliodbs.com>
References: <6EE64EF3AB31D5448D0007DD34EEB3412A7446@Herge.rcsinc.local>
<200408101018.32327.josh@agliodbs.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: steve@rueb.com, josh@agliodbs.com, merlin.moncure@rcsonline.com
Subject: Re: [HACKERS] fsync vs open_sync
In-Reply-To: <1092257474.18945.37.camel@voyager.localdomain>
References: <6EE64EF3AB31D5448D0007DD34EEB3412A7446@Herge.rcsinc.local> <200408101018.32327.josh@agliodbs.com> <1092257474.18945.37.camel@voyager.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox