Re: [PATCH 2/3] SUNRPC: Faster detection if gssd is actually running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2013-05-16 at 21:03 -0400, J. Bruce Fields wrote:
> On Thu, May 16, 2013 at 04:19:54PM -0400, bfields wrote:
> > On Wed, May 15, 2013 at 12:50:40PM -0700, Trond Myklebust wrote:
> > > Recent changes to the NFS security flavour negotiation mean that
> > > we have a stronger dependency on rpc.gssd. If the latter is not
> > > running, because the user failed to start it, then we time out
> > > and mark the container as not having an instance. We then
> > > use that information to time out faster the next time.
> > > 
> > > If, on the other hand, the rpc.gssd successfully binds to an rpc_pipe,
> > > then we mark the container as having an rpc.gssd instance.
> > 
> > So it's still a 15 second delay on the first mount, then 7 on the
> > second, then 3, 1, and no delay thereafter.  Is that right?
> > 
> > Why not be harsher and go straight to 0 after the first failure?
> 
> Chuck points out I'm confused, it's actually 15s then 1/4s (why 1/4s?).

The timeout has to be non-zero, otherwise if you _do_ restart rpc.gssd,
it needs a certain time to actually connect to one of the gssd
rpc_pipes.

The 15 second initial timeout is there in order to deal with the fact
that it may take a moment or 2 for init to get round to starting
rpc.gssd. I didn't want to change that value right now.

> (Apologies, somehow I saw a ">> 2" in there and my brain shut down and
> jumped to the "exponential delay" conclusion.)
> 
> Still sort of curious how we're choosing these delays, though.
> 
> Hard to imagine people won't still notice the delay on first mount.
> Given there's a workaround (run gssd), maybe that's just good enough for
> now, I don't know.


-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux