Skip to content

tweak knfsd session slot table sizing

J. Bruce Fields linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsd: increase DRC cache limitfs/nfsd/nfssvc.c+1 -10 replies
2/2nfsd: give out fewer session slots as limit approachesfs/nfsd/nfs4state.c+5 -08 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] tweak knfsd session slot table sizing

From: "J. Bruce Fields" <[email protected]>

Current client and server defaults can limit NFSv4.1+ mounts to as few as 4 per gigabytes of server RAM, and people have been running into the limit on upgrading the protocol version from 4.0 to 4.1.

Bump the limit. Also return smaller ca_maxrequests as the limit approaches instead of waiting till we have to fail CREATE_SESSION completely.

A few years ago Trond also posted some patches to dynamically resize existing sessions as limits approach--I'll revisit those at some point too.

The numbers chosen here are honestly still a little arbitrary, and we may tweak them again if we see more problems.

--b.

J. Bruce Fields (2):
nfsd: increase DRC cache limit
nfsd: give out fewer session slots as limit approaches

 fs/nfsd/nfs4state.c | 5 +++++
 fs/nfsd/nfssvc.c    | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.13.5