Re: Why O_SYNC is faster than fsync on ext3 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why O_SYNC is faster than fsync on ext3
Date
Msg-id 25689.1079885432@sss.pgh.pa.us
Whole thread Raw
In response to Why O_SYNC is faster than fsync on ext3  (Yusuf Goolamabbas <yusufg@outblaze.com>)
List pgsql-hackers
Yusuf Goolamabbas <yusufg@outblaze.com> writes:
> Bruce, haven't followed the thread completely. Accessing the web archive
> is slow from Hong Kong but I just wanted to point you to this lkml post
> which shows why O_SYNC is much faster than fsync (at least on ext3)
> http://marc.theaimsgroup.com/?l=linux-kernel&m=107959907410443&w=2

That patch is broken on its face.  If O_SYNC doesn't take longer than
O_DSYNC, and likewise fsync longer than fdatasync, then the Unix
filesystem semantics are not being honored because the file mod time
isn't being updated.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Unbalanced Btree Indices ...
Next
From: Tom Lane
Date:
Subject: Re: Unbalanced Btree Indices ...