[PATCH 0/2] limit the number of v4 clients to 4096 per 4GB of system memory
From: Dai Ngo <dai.ngo@oracle.com>
Date: 2022-07-12 20:11:08
From: Dai Ngo <dai.ngo@oracle.com>
Date: 2022-07-12 20:11:08
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