Why O_SYNC is faster than fsync on ext3

From: Yusuf Goolamabbas <yusufg(at)outblaze(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Why O_SYNC is faster than fsync on ext3
Date: 2004-03-21 04:37:36
Message-ID: 20040321043736.GA21803@outblaze.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)outblaze(dot)com> -----

Date: Sat, 20 Mar 2004 20:52:34 +0800
From: Yusuf Goolamabbas <yusufg(at)outblaze(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Your fsync thread on hackers
Message-ID: <20040320125234(dot)GA11221(at)outblaze(dot)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/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Manfred Spraul 2004-03-21 10:45:18 Re: Why O_SYNC is faster than fsync on ext3
Previous Message Jean Morissette 2004-03-21 03:02:30 Paged BTree node