* O_SYNC behavior?
@ 2010-04-26 22:56 Ray Van Dolson
2010-04-26 23:25 ` Nathan Scott
0 siblings, 1 reply; 5+ messages in thread
From: Ray Van Dolson @ 2010-04-26 22:56 UTC (permalink / raw)
To: xfs
End-user question:
NFS client accessing an NFS export on an XFS based filesystem via
"sync" (O_SYNC) mode.
Will write confirmation be sent back from the NFS server when the data
is written to the xfs journal, or not until it is actually written to
disk (assuming in this case the journal is on a separate SSD device or
something similar)?
Thanks,
Ray
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: O_SYNC behavior?
2010-04-26 22:56 O_SYNC behavior? Ray Van Dolson
@ 2010-04-26 23:25 ` Nathan Scott
2010-04-27 9:32 ` Matthias Schniedermeyer
0 siblings, 1 reply; 5+ messages in thread
From: Nathan Scott @ 2010-04-26 23:25 UTC (permalink / raw)
To: Ray Van Dolson; +Cc: xfs
----- "Ray Van Dolson" <rvandolson@esri.com> wrote:
> End-user question:
>
> NFS client accessing an NFS export on an XFS based filesystem via
> "sync" (O_SYNC) mode.
>
> Will write confirmation be sent back from the NFS server when the
> data is written to the xfs journal,
Data is never written to the journal.
cheers.
--
Nathan
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: O_SYNC behavior?
2010-04-26 23:25 ` Nathan Scott
@ 2010-04-27 9:32 ` Matthias Schniedermeyer
2010-04-27 14:12 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Matthias Schniedermeyer @ 2010-04-27 9:32 UTC (permalink / raw)
To: Nathan Scott; +Cc: xfs, Ray Van Dolson
On 27.04.2010 09:25, Nathan Scott wrote:
>
> ----- "Ray Van Dolson" <rvandolson@esri.com> wrote:
>
> > End-user question:
> >
> > NFS client accessing an NFS export on an XFS based filesystem via
> > "sync" (O_SYNC) mode.
> >
> > Will write confirmation be sent back from the NFS server when the
> > data is written to the xfs journal,
>
> Data is never written to the journal.
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".
Bis denn
--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: O_SYNC behavior?
2010-04-27 9:32 ` Matthias Schniedermeyer
@ 2010-04-27 14:12 ` Christoph Hellwig
2010-04-27 15:35 ` Ray Van Dolson
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2010-04-27 14:12 UTC (permalink / raw)
To: Matthias Schniedermeyer; +Cc: Ray Van Dolson, Nathan Scott, xfs
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.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: O_SYNC behavior?
2010-04-27 14:12 ` Christoph Hellwig
@ 2010-04-27 15:35 ` Ray Van Dolson
0 siblings, 0 replies; 5+ messages in thread
From: Ray Van Dolson @ 2010-04-27 15:35 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Nathan Scott, xfs@oss.sgi.com
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.
Thanks,
Ray
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-27 15:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 22:56 O_SYNC behavior? Ray Van Dolson
2010-04-26 23:25 ` Nathan Scott
2010-04-27 9:32 ` Matthias Schniedermeyer
2010-04-27 14:12 ` Christoph Hellwig
2010-04-27 15:35 ` Ray Van Dolson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox