Skip to content

Commit 8ddd06b

Browse files
committed
NFSD: Reduce DRC bucket size
The common case is that a DRC lookup will not find the XID in the bucket. Reduce the amount of pointer chasing during the lookup by keeping fewer entries in each hash bucket. Changing the bucket size constant forces the size of the DRC hash table to increase, and the height of each bucket r-b tree to be reduced. Signed-off-by: Chuck Lever <[email protected]>
1 parent fb340bf commit 8ddd06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* cache size, the idea being that when the cache is at its maximum number
2828
* of entries, then this should be the average number of entries per bucket.
2929
*/
30-
#define TARGET_BUCKET_SIZE 64
30+
#define TARGET_BUCKET_SIZE 8
3131

3232
struct nfsd_drc_bucket {
3333
struct rb_root rb_head;

0 commit comments

Comments
 (0)