mbox series

[0/2] limit the number of v4 clients to 4096 per 4GB of system memory

Message ID 1657656660-16647-1-git-send-email-dai.ngo@oracle.com (mailing list archive)
Headers show
Series limit the number of v4 clients to 4096 per 4GB of system memory | expand

Message

Dai Ngo July 12, 2022, 8:10 p.m. UTC
This patch series enforces a limit on the number of v4 clients allowed
in the system. With Courteous server support there are potentially a
lots courtesy clients exist in the system that use up memory resource
preventing them to be used by other components in the system. Also
without a limit on the number of clients, the number of clients can
grow to a very large number even for system with small memory configuration
eventually render the system into an unusable state.

---
Resend with Subject line

Dai Ngo (2):
      NFSD: keep track of the number of v4 clients in the system
      NFSD: limit the number of v4 clients to 4096 per 4GB of system memory

 fs/nfsd/netns.h     |  3 +++
 fs/nfsd/nfs4state.c | 25 +++++++++++++++++++------
 fs/nfsd/nfsctl.c    | 10 ++++++++++
 3 files changed, 32 insertions(+), 6 deletions(-)

--
Dai Ngo