diff options
author | mohans <mohans@FreeBSD.org> | 2006-06-23 00:42:26 +0000 |
---|---|---|
committer | mohans <mohans@FreeBSD.org> | 2006-06-23 00:42:26 +0000 |
commit | 798a5b356c9d7f2bbaa5a80284de7f20a81175d6 (patch) | |
tree | 28afbf244f1b73f4563b7891d8bbbe8cb47a5315 /sys/nfsserver/nfsrvcache.h | |
parent | 73fb243aeac146519d2c1564db9928bb3c768963 (diff) | |
download | FreeBSD-src-798a5b356c9d7f2bbaa5a80284de7f20a81175d6.zip FreeBSD-src-798a5b356c9d7f2bbaa5a80284de7f20a81175d6.tar.gz |
Size the NFS server dupreq cache on the basis of nmbclusters. On servers
with low nmbclusters, we tie up too many mbclusters in the NFS duplicate
request cache. This change limits the size of the dupreq cache to 1/2
the nmbclusters (and flaots in a range of [64, 2048]).
MFC after 2 weeks.
Reported by: Steve Kargl, David O'Brien
Tested by: Steve Kargl
Diffstat (limited to 'sys/nfsserver/nfsrvcache.h')
-rw-r--r-- | sys/nfsserver/nfsrvcache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsserver/nfsrvcache.h b/sys/nfsserver/nfsrvcache.h index 266aaa9..66176f4 100644 --- a/sys/nfsserver/nfsrvcache.h +++ b/sys/nfsserver/nfsrvcache.h @@ -41,8 +41,8 @@ /* * Definitions for the server recent request cache */ - -#define NFSRVCACHESIZ 2048 +#define NFSRVCACHE_MAX_SIZE 2048 +#define NFSRVCACHE_MIN_SIZE 64 struct nfsrvcache { TAILQ_ENTRY(nfsrvcache) rc_lru; /* LRU chain */ |