Skip to content

knfsd: support larger numbers of clients

Ben Myers linux-nfs 1 version In review

Get series with b4
b4 am 20100222215349.8481.80700.stgit@case

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2knfsd: nfsd_max_connections module parameterfs/nfsd/nfsctl.c fs/nfsd/nfssvc.c+9 -00 replies
2/2sunrpc: socket buffer size module parameterfs/nfsd/nfsctl.c net/sunrpc/sunrpc_syms.c net/sunrpc/svcsock.c+80 -414 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] knfsd: support larger numbers of clients

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(-)