Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 21A0C476799 for ; Tue, 10 Sep 2002 18:49:23 -0400 (EDT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by postgresql.org (Postfix) with ESMTP id 01072476782 for ; Tue, 10 Sep 2002 18:49:22 -0400 (EDT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.2) id g8AMnFA03506; Wed, 11 Sep 2002 00:49:15 +0200 Date: Wed, 11 Sep 2002 00:49:14 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: Bruce Momjian Cc: Tom Lane , Gaetano Mendola , pgsql-admin@postgresql.org Subject: Re: fsync or fdatasync Message-ID: <20020911004914.C30625@vestdata.no> References: <20020910224830.A30625@vestdata.no> <200209102107.g8AL7UN23077@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <200209102107.g8AL7UN23077@candle.pha.pa.us>; from pgman@candle.pha.pa.us on Tue, Sep 10, 2002 at 05:07:30PM -0400 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/123 X-Sequence-Number: 5662 On Tue, Sep 10, 2002 at 05:07:30PM -0400, Bruce Momjian wrote: > > Anyway - I'm sure this is not enough to convince you, so I'll have to > > set up a test instead. But not tonight. > > Again, that is a test case for only one OS. It is helpful if we are > going to start doing per-OS defaults, which is something we have talked > about. Oh; I assumed that was already the case. > What would be great is a test program we can run on different > OS's to find out which is more efficient. Yes. Bare in mind though, that this is as much a filesystem issue as a kernel issue. Two different filesystems on the same kernel may behave very differently. Of course one can't distribute seperate postgresql in different versions optimized for differet filesystems, so perhaps it's just as good to leave the default as it is and rather put some info (e.g. benchmarks for different setting on different filesystems on different operating systems, and the benchmark-script itself so people can do their own tests). This way the default is allright, and users that need to tweek a little extra have the info they need. > Remember, in most cases, we are fsync'ing only one block so there is no > _gathering_ to do. Yes, I know you said so. But if that's the case for only most cases there are some cases were it's not - so there is still some potential. -- Ragnar Kjørstad