public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] knfsd: support larger numbers of clients
@ 2010-02-22 21:54 Ben Myers
  2010-02-22 21:54 ` [PATCH 1/2] knfsd: nfsd_max_connections module parameter Ben Myers
  2010-02-22 21:54 ` [PATCH 2/2] sunrpc: socket buffer size " Ben Myers
  0 siblings, 2 replies; 7+ messages in thread
From: Ben Myers @ 2010-02-22 21:54 UTC (permalink / raw)
  To: linux-nfs

Several customers that have large numbers of nfs clients have run afoul of the
existing connection limits ((nr_threads+3) * 20) and have been handling the
situation by bumping the number of nfsd threads.  There are two problems:

1) The maximum number of connections is tied to the number of nfsd threads.

The first patch decouples the maximum number of connections from the number of
threads by making it a tuneable.  Note that the default setting still uses the
existing formula.  Folks who want to handle additional connections without
bumping the number of threads can do so.

2) At around 1020 threads the send buffer size wraps negative and things grind
to a halt.

The second patch decouples the size of send and receive buffers from the number
of threads by making them tuneable.  Buffer sizes were getting absurdly large
as the number of nfsd threads grew.  Now they remain constant.


Both patches were originally implmented using sysctls but I have changed them
over to module parameters to match what Jeff Layton has done with
nlm_max_connections.

Thanks,
	Ben

---

Ben Myers (2):
      knfsd: nfsd_max_connections module parameter
      sunrpc: socket buffer size module parameter


 fs/nfsd/nfsctl.c         |    7 ++++
 fs/nfsd/nfssvc.c         |    3 ++
 net/sunrpc/sunrpc_syms.c |   39 ++++++++++++++++++++++
 net/sunrpc/svcsock.c     |   81 +++++++++++++++++++++++-----------------------
 4 files changed, 89 insertions(+), 41 deletions(-)

-- 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-23 20:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 21:54 [PATCH 0/2] knfsd: support larger numbers of clients Ben Myers
2010-02-22 21:54 ` [PATCH 1/2] knfsd: nfsd_max_connections module parameter Ben Myers
2010-02-22 21:54 ` [PATCH 2/2] sunrpc: socket buffer size " Ben Myers
2010-02-23  1:33   ` Chuck Lever
2010-02-23 16:12     ` bpm
2010-02-23 20:09       ` Chuck Lever
2010-02-23 20:48         ` bpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox