[Top] [All Lists]

Re: O_SYNC behavior?

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: O_SYNC behavior?
From: Ray Van Dolson <rvandolson@xxxxxxxx>
Date: Tue, 27 Apr 2010 08:35:04 -0700
Cc: Matthias Schniedermeyer <ms@xxxxxxx>, Nathan Scott <nathans@xxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
In-reply-to: <20100427141205.GA557@xxxxxxxxxxxxx>
References: <20100426225627.GA7106@xxxxxxxx> <537687191.239471272324343715.JavaMail.root@xxxxxxxxxxxxxxxxxx> <20100427093250.GA15182@xxxxxxx> <20100427141205.GA557@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.19 (2009-01-05)
On Tue, Apr 27, 2010 at 07:12:05AM -0700, Christoph Hellwig wrote:
> On Tue, Apr 27, 2010 at 11:32:50AM +0200, Matthias Schniedermeyer wrote:
> > I don't think that answers the intented question.
> > 
> > I guess the correct answer is:
> > It depends on the server-side configuration.
> > An "async" export gets the "done"-answer immediatly.
> > An "sync" export (only when also mounted "sync" AFAIU) waits at least 
> > until the write command is send down the stack, maybe even until the 
> > data actually hit the platters or silicon in the SSD-case.
> > 
> > man 5 exports:
> > - snip -
> > sync:       Reply to requests only after the changes have been committed to 
> > stable storage
> > - snip -
> > 
> > But i guess the performance will be horrible when both side are "sync".
> The client side (that is mount-side) sync means implying O_SYNC for all
> I/O - no need for that.  And sync exports are the default for every sane
> server.

Thanks guys.  I was asking this from the perspective of a ZFS type
setup with its intent log (ZIL) on SSD's or some battery backed NVRAM.

In this setup, with sync mode NFS, acknowledgement is sent to the
client as soon as the data is written to the ZIL -- before it actually
hits the underlying disks.

Just was trying to determine a way to mirror this setup with XFS.


<Prev in Thread] Current Thread [Next in Thread>