Re: fsync or fdatasync - Mailing list pgsql-admin

From Ragnar Kjørstad
Subject Re: fsync or fdatasync
Date
Msg-id 20020910015207.U24188@vestdata.no
Whole thread Raw
In response to Re: fsync or fdatasync  (Sean Chittenden <sean@chittenden.org>)
Responses Re: fsync or fdatasync  (Sean Chittenden <sean@chittenden.org>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: fsync or fdatasync
Next
From: Sean Chittenden
Date:
Subject: Re: fsync or fdatasync