All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Mason <mason@suse.com>
To: Russell Coker <russell@coker.com.au>
Cc: berthiaume_wayne@emc.com, reiserfs-list@namesys.com
Subject: Re: fsync() Performance Issue
Date: 29 Apr 2002 12:30:21 -0400	[thread overview]
Message-ID: <1020097821.1734.189.camel@tiny> (raw)
In-Reply-To: <20020429162020.92AD93EA8@lyta.coker.com.au>

On Mon, 2002-04-29 at 12:20, Russell Coker wrote:
> On Fri, 26 Apr 2002 22:28, berthiaume_wayne@emc.com wrote:
> 
> It's interesting to note your email address and what it implies...
> 
> > 	I'm wondering if anyone out there may have some suggestions on how
> > to improve the performance of a system employing fsync(). I have to be able
> > to guaranty that every write to my fileserver is on disk when the client
> > has passed it to the server. Therefore, I have disabled write cache on the
> > disk and issue an fsync() per file. I'm running 2.4.19-pre7, reiserfs
> > 3.6.25, without additional patches. I have seen some discussions out here
> > about various other "speed-up" patches and am wondering if I need to add
> > these to 2.4.19-pre7? And what they are and where can I obtain said
> > patches? Also, I'm wondering if there is another solution to syncing the
> > data that is faster than fsync(). Testing, thusfar, has shown a large
> > disparity between running with and without sync.Another idea is to explore
> > another filesystem, but I'm not exactly excited by the other journaling
> > filesystems out there at this time. All ideas will be greatly appreciated.
> 
> These issues have been discussed a few times, but not with any results as 
> exciting as you might hope for.  One which was mentioned was using 
> fdatasync() instead of fsync().

The speedup patches should help fsync some, since they make it much more
likely a commit will be done without the journal lock held.

If all the writes on the FS end up being done through fsync, the data
logging patches might help a lot.  These should be ready for broader
testing this week.

If you are using IDE drives, the write barrier patches are almost enough
to allow you to turn on write caching safely.  They make sure metadata
triggers proper drive cache flushes, I can try to rig up something that
will also trigger a cache flush on data syncs.

-chris



  reply	other threads:[~2002-04-29 16:30 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26 20:28 fsync() Performance Issue berthiaume_wayne
2002-04-29 16:20 ` Russell Coker
2002-04-29 16:30   ` Chris Mason [this message]
2002-04-29 16:32   ` Toby Dickenson
2002-04-29 16:45     ` Chris Mason
2002-04-29 17:56     ` Matthias Andree
2002-04-29 18:58       ` Valdis.Kletnieks
2002-04-29 18:56         ` Hans Reiser
2002-04-30 14:20 ` Oleg Drokin
2002-04-30 14:27   ` Chris Mason
2002-05-02  5:07   ` Christian Stuke
2002-05-02  6:20     ` Oleg Drokin
  -- strict thread matches above, loose matches on Subject: below --
2002-04-29 17:26 berthiaume_wayne
2002-04-30 14:45 berthiaume_wayne
2002-05-03 20:35 berthiaume_wayne
2002-05-03 22:00 ` Chris Mason
2002-05-04  2:05   ` Hans Reiser
2002-05-04  5:41     ` Valdis.Kletnieks
2002-05-04 13:11     ` Chris Mason
2002-05-04 14:59       ` Hans Reiser
2002-05-06 12:40         ` Chris Mason
2002-05-06 13:02           ` Hans Reiser
2002-05-06 21:21           ` Hans Reiser
2002-05-06 22:57             ` Chris Mason
2002-05-06 23:41               ` Hans Reiser
2002-05-07  1:17               ` Manuel Krause
2002-05-07  2:04                 ` Chris Mason
2002-05-07 20:26                   ` Manuel Krause
2002-05-08  1:22                     ` Chris Mason
2002-05-06 12:54 berthiaume_wayne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1020097821.1734.189.camel@tiny \
    --to=mason@suse.com \
    --cc=berthiaume_wayne@emc.com \
    --cc=reiserfs-list@namesys.com \
    --cc=russell@coker.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.