From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] SUNRPC: Use a cached RPC client and transport for rpcbind upcalls
Date: Fri, 20 Nov 2009 18:57:01 -0500 [thread overview]
Message-ID: <1258761421.2982.7.camel@localhost> (raw)
In-Reply-To: <20091120224437.3504.1598.stgit-RytpoXr2tKZ9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
On Fri, 2009-11-20 at 17:46 -0500, Chuck Lever wrote:
> The kernel's rpcbind client creates and deletes an rpc_clnt and its
> underlying transport socket for every upcall to the local rpcbind
> daemon.
>
> When starting a typical NFS server on IPv4 and IPv6, the NFS service
> itself does three upcalls (one per version) times two upcalls (one
> per transport) times two upcalls (one per address family), making 12,
> plus another one for the initial call to unregister previous NFS
> services. Starting the NLM service adds an additional 13 upcalls,
> for similar reasons.
>
> (Currently the NFS service doesn't start IPv6 listeners, but it will
> soon enough).
>
> Instead, let's create an rpc_clnt for rpcbind upcalls during the
> first local rpcbind query, and cache it. This saves the overhead of
> creating and destroying an rpc_clnt and a socket for every upcall.
>
> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
> ---
>
> Trond-
>
> Does this refresh address your concern?
Most of them. You still need to fix cleanup_rpcb_clnt() so that it
doesn't try to call rpc_shutdown_client() with NULL arguments.
Cheers
Trond
next prev parent reply other threads:[~2009-11-20 23:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-20 22:46 [PATCH] SUNRPC: Use a cached RPC client and transport for rpcbind upcalls Chuck Lever
[not found] ` <20091120224437.3504.1598.stgit-RytpoXr2tKZ9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2009-11-20 23:57 ` Trond Myklebust [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-11-23 19:17 Chuck Lever
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=1258761421.2982.7.camel@localhost \
--to=trond.myklebust@fys.uio.no \
--cc=chuck.lever@oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.