Re: fsync or fdatasync

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: Ragnar Kj?rstad <postgres(at)ragnark(dot)vestdata(dot)no>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: fsync or fdatasync
Date: 2002-09-10 00:11:27
Message-ID: 20020910001127.GM26147@ninja1.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> > > 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.

Hrm, alright. From what I've figured out, about ~6wk ago fsync() was
added to linux to have it actually fsync()... mind you someone quickly
turned around and created a new patchset that ripped the functionality
out and added it to an extreme linux distro. ::shrug:: <opinion>Linux
is out of control.</opinion> -sc

PS This wasn't a flame/troll, just trying to figure out what the best
recommendation would be for FreeBSD and it is fsync().

--
Sean Chittenden

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ragnar Kjørstad 2002-09-10 00:28:20 Re: fsync or fdatasync
Previous Message Ragnar Kjørstad 2002-09-09 23:52:08 Re: fsync or fdatasync