OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-4688-g8e97a6c
Gerrit Code Review
Wed, 2 Sep 2015 01:26:18 -0400
The following commit has been merged in the master branch:
Author: Benjamin Kaduk <firstname.lastname@example.org>
Date: Thu Jan 15 11:54:30 2015 -0500
afs: Increase vcache and dcache hash table sizes
Now that we are using a real hash function, larger hash tables
will be more useful.
The vcache hash tables are statically sized, and this increase will
add about a megabyte to the kernel module's memory footprint.
Update the algorithm used to dynamically size the dcache hash tables,
keeping the old behavior for small numbers of dcaches, but growing
the hash table's size to keep the average chain length near two
for a range of dcache numbers. Cap the dcache hash tables at 32k
entries to avoid excessive resource usage.
This involves code from opr, namely opr/ffs.h, which is acceptable
in the kernel module because that header is a standalone header
like jhash.h, with no dependencies on the system.
Reviewed-by: Benjamin Kaduk <email@example.com>
Tested-by: Benjamin Kaduk <firstname.lastname@example.org>
src/afs/afs.h | 2 +-
src/afs/afs_dcache.c | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletions(-)
OpenAFS Master Repository