From: "J. Bruce Fields" <bfields@fieldses.org>
To: Steve Dickson <SteveD@RedHat.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: notes on VAULT 2017 NFS BOF
Date: Tue, 28 Mar 2017 21:45:57 -0400 [thread overview]
Message-ID: <20170329014557.GE20963@fieldses.org> (raw)
In-Reply-To: <b77898fc-830d-6458-fe1e-86159fec92b6@RedHat.com>
On Sat, Mar 25, 2017 at 01:28:42PM -0400, Steve Dickson wrote:
> On 03/24/2017 10:59 AM, J. Bruce Fields wrote:
> > Should the client by default try NFSv4.2 first? Consensus seems to be
> > yes. When 4.2 fails, it tries 4.1, then 4.0, etc. It works
> > transparently. Steved was worried that those retries might become a
> > problem on clients with lots of NFS mounts. Trond suggested recording
> > the result of the version negotiation across mounts, so a client doing a
> > lot of mounts to the same server would only need the retries on the
> > first mount.
> I just don't think this scales very well in large NFS mounted
> home directory server. Since the major enterprise servers
> do not support 4.2 and I don't see them supporting 4.2
> anytime soon. Why try something when you know its going to fail? ;-)
I'm OK with sticking with 4.1 for now.
That said, the expense of negotiation shouldn't be an issue. We have
ideas here for cutting that expense (if it really is an issue), and
they'd help in the 4.1->4.0 case too.
> Starting at v4.2 in non-enterprise environments works,
> at least it has for the last few years...
>
> > The retries are driven by userspace which does a mount for a specific
> > version and uses the return from the mount call to decide to negotiate
> > down. So a new TCP connection happens for each mount attempt.
> Well it could be up to 3 connection (including the successful mount)
> when both the IPv4 and IPv6 address are tried.
Somebody correct me if I'm wrong, but I don't think that contributes to
port exhaustion. Connections to the IPv4 and IPv6 addresses using the
same ports are distinct, aren't they?
> > Miklos introduced a proposed new mount api at LSF earlier in the week.
> > It would allow some communication with the file system driver to set up
> > parameters before the system call that creates the mountpoint. If we
> > moved the mount negotiation to that setup phase, that might make the
> > negotiation phase more efficient while still leaving userspace in
> > charge. (And we prefer leaving userspace in charge to give it maximum
> > control over negotiation policy.)
> Any pointers to this?
I googled around a little and can't find any. It's still just a
proposal, so there's nothing for us to build on yet.
--b.
next prev parent reply other threads:[~2017-03-29 1:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 14:59 notes on VAULT 2017 NFS BOF J. Bruce Fields
2017-03-25 17:28 ` Steve Dickson
2017-03-29 1:45 ` J. Bruce Fields [this message]
2017-03-29 13:50 ` Steve Dickson
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=20170329014557.GE20963@fieldses.org \
--to=bfields@fieldses.org \
--cc=SteveD@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).