diff options
author | NeilBrown <neilb@suse.de> | 2024-12-12 08:47:05 +1100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-01-06 09:37:37 -0500 |
commit | b5fba969a2e445e2f36b699582d8410478a99374 (patch) | |
tree | a626b94a2d875b94446ec04d25ff686dca81aa4a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0b6e14242630ad5f65839b23400bd67c5166e2b4 (diff) |
nfsd: remove artificial limits on the session-based DRC
Rather than guessing how much space it might be safe to use for the DRC,
simply try allocating slots and be prepared to accept failure.
The first slot for each session is allocated with GFP_KERNEL which is
unlikely to fail. Subsequent slots are allocated with the addition of
__GFP_NORETRY which is expected to fail if there isn't much free memory.
This is probably too aggressive but clears the way for adding a
shrinker interface to free extra slots when memory is tight.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions