linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Keegan <lk@pfw.demon.co.uk>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Jeff Layton <jlayton@redhat.com>, <linux-nfs@vger.kernel.org>
Subject: Re: nfs client: Now you see it, now you don't (aka spurious ESTALE errors)
Date: Tue, 6 Aug 2013 15:38:27 +0000	[thread overview]
Message-ID: <20130806153827.19a1ec21@cs3.al.itld> (raw)
In-Reply-To: <20130806133407.GB5282@fieldses.org>

On Tue, 6 Aug 2013 09:34:07 -0400
"J. Bruce Fields" <bfields@fieldses.org> wrote:
> On Tue, Aug 06, 2013 at 07:14:28AM -0400, Jeff Layton wrote:
> > On Tue, 6 Aug 2013 11:02:09 +0000
> > Larry Keegan <lk@pfw.demon.co.uk> wrote:
> > > These figures seem reasonable for a single SATA HDD in concert
> > > with dmcrypt. Whilst I expected some degradation from exporting
> > > and mounting sync, I have to say that I'm truly flabbergasted by
> > > the difference between the sync and async figures. I can't help
> > > but think I am still suffering from some sort of configuration
> > > problem. Do the numbers from the NFS client seem unreasonable?
> > > 
> > 
> > That's expected. Performance is the tradeoff for tight cache
> > coherency.
> > 
> > With -o sync, each write() sycall requires a round trip to the
> > server. They don't get batched and you can't issue them in
> > parallel. That has a terrible effect on write performance.
> 
> Note also mounting -osync and exporting with the "sync" export option
> are entirely different things.
> 
> The defaults are what you want (async mount option, sync export
> option) unless you've thought hard about it.  This is especially true
> on the server, since the "async" export option make it skip
> committing data to disk even when the protocol mandates it.

Righto. This makes sense. After a brief pause I'll see if I can tickle
the ESTALE problem under NFS 4.

With many thanks.

Yours,

Larry.

  reply	other threads:[~2013-08-06 15:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25 13:45 nfs client: Now you see it, now you don't Larry Keegan
2013-07-25 14:11 ` nfs client: Now you see it, now you don't (aka spurious ESTALE errors) Jeff Layton
2013-07-25 14:24   ` Myklebust, Trond
2013-07-25 14:33     ` Jeff Layton
2013-07-25 14:41       ` Myklebust, Trond
2013-07-25 17:05   ` Larry Keegan
2013-07-25 18:18     ` Jeff Layton
2013-07-26 12:41       ` Larry Keegan
2013-07-26 13:12         ` Jeff Layton
2013-07-26 15:02           ` J. Bruce Fields
2013-07-26 22:25             ` Larry Keegan
2013-07-31 14:03               ` J. Bruce Fields
2013-07-31 19:50                 ` Larry Keegan
2013-07-31 20:35                   ` J. Bruce Fields
2013-07-26 16:10           ` Larry Keegan
2013-07-26 14:59     ` J. Bruce Fields
2013-07-26 23:21       ` Larry Keegan
2013-08-06 11:02         ` Larry Keegan
2013-08-06 11:14           ` Jeff Layton
2013-08-06 13:34             ` J. Bruce Fields
2013-08-06 15:38               ` Larry Keegan [this message]
2013-08-19 21:16       ` Bruce Guenter

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=20130806153827.19a1ec21@cs3.al.itld \
    --to=lk@pfw.demon.co.uk \
    --cc=bfields@fieldses.org \
    --cc=jlayton@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).