Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id ECAD5475E20 for ; Mon, 9 Sep 2002 19:52:17 -0400 (EDT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by postgresql.org (Postfix) with ESMTP id D6251475CE4 for ; Mon, 9 Sep 2002 19:52:16 -0400 (EDT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.2) id g89Nq8229758; Tue, 10 Sep 2002 01:52:08 +0200 Date: Tue, 10 Sep 2002 01:52:08 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: Sean Chittenden Cc: Tom Lane , Gaetano Mendola , pgsql-admin@postgresql.org Subject: Re: fsync or fdatasync Message-ID: <20020910015207.U24188@vestdata.no> References: <11753.1031590251@sss.pgh.pa.us> <20020909234304.GK26147@ninja1.internal> 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: <20020909234304.GK26147@ninja1.internal>; from sean@chittenden.org on Mon, Sep 09, 2002 at 04:43:04PM -0700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/97 X-Sequence-Number: 5636 On Mon, Sep 09, 2002 at 04:43:04PM -0700, Sean Chittenden wrote: > > We'll be glad to consider changing the default for a specific platform > > if we have a reasonably convincing argument that the other value is > > better. So far, not much study has been done of which method is best > > on which platforms (and under what load conditions). > > heh, just a quick note: I had one of FreeBSD's kernel guru's point out > that fsync() on linux is a no-op. I haven't had that src tree in > years so I can't confirm, but I'm inclined to believe him. Just an No, fsync() is not a no-op on linux. Unless the filesystem is mounted with o_sync, I suppose - then everything is written at write() so fsync() is not needed. But generally, it does sync. -- Ragnar Kjørstad Big Storage