From: "'J. Bruce Fields'" <bfields@fieldses.org>
To: Tim <supertimothy@web.de>
Cc: linux-nfs@vger.kernel.org
Subject: Re: nfsv4 and gracetime / leasetime grace_period
Date: Wed, 14 Sep 2011 17:34:51 -0400 [thread overview]
Message-ID: <20110914213451.GA7109@fieldses.org> (raw)
In-Reply-To: <000001cc72a7$73151c50$593f54f0$@web.de>
On Wed, Sep 14, 2011 at 08:27:59AM +0200, Tim wrote:
> >> /proc/sys/fs/nfs/nlm_grace_period
> >> This is the part I don't understand what it is for. I read it has to
> >> be shrunk too (I set it to 10 - which works). Standard value is 0.
>
> > NLM (used with NFSv2/v3) works a little differently: instead of the clients polling at regular intervals, the server calls back to the clients to notify them that it has rebooted. But there's still this grace period, which is the length of time the NLM server waits for the clients to act on the notifications by sending lock reclaims.
>
> > It affects v4 as well, because the v4 server can't end its grace period before the NLM server does: if it did, v4 clients could rush in and start doing new locks before v2/v3 clients had the chance to reclaim all of theirs.
>
> So if I only use NFSv4, I can set this to 1 second? Or would 0 be better?
Should be safe. (Without looking at the code I don't remember if 0 is
allowed or has some special meaning.)
Some day we should start automatically turning off v2/v3-only stuff in
the v4-only case, it just hasn't been a priority yet.
--b.
prev parent reply other threads:[~2011-09-14 21:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-13 9:43 nfsv4 and gracetime / leasetime grace_period Tim
2011-09-13 12:44 ` J. Bruce Fields
2011-09-13 23:18 ` supertimothy
2011-09-14 2:37 ` J. Bruce Fields
2011-09-14 6:27 ` AW: " Tim
2011-09-14 21:34 ` 'J. Bruce Fields' [this message]
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=20110914213451.GA7109@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=supertimothy@web.de \
/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).