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

From Yusuf Goolamabbas
Subject Why O_SYNC is faster than fsync on ext3
Date
Msg-id 20040321043736.GA21803@outblaze.com
Whole thread Raw
Responses Re: Why O_SYNC is faster than fsync on ext3  (Manfred Spraul <manfred@colorfullife.com>)
Re: Why O_SYNC is faster than fsync on ext3  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I sent this to Bruce but forgot to cc pgsql-hackers, The patches are
likely to go into 2.6.6. People interested in extremely safe fsync
writes should also follow the IDE barrier thread and the true fsync() in
Linux on IDE thread

----- Forwarded message from Yusuf Goolamabbas <yusufg@outblaze.com> -----

Date: Sat, 20 Mar 2004 20:52:34 +0800
From: Yusuf Goolamabbas <yusufg@outblaze.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Subject: Your fsync thread on hackers
Message-ID: <20040320125234.GA11221@outblaze.com>

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

There are some pending fsync speedups on XFS also. You might want to
consider pointing Tom to do this so he can get the Redhat/Fedora guys to
look at the patches

Hope this helps, Regards, Yusuf

----- End forwarded message -----

-- 
If you're not using Firefox, you're not surfing the web   you're suffering it
http://www.mozilla.org/products/firefox/why/


pgsql-hackers by date:

Previous
From: Jean Morissette
Date:
Subject: Paged BTree node
Next
From: Manfred Spraul
Date:
Subject: Re: Why O_SYNC is faster than fsync on ext3