summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfsdport.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-06-10 12:17:19 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-06-10 12:17:19 +0000
commit953b730dd8cd92f9264f9c355979c0c5f7b54291 (patch)
treeccc72ff29eec3fb41ec6bb7f053ff9406b7db6e5 /sys/fs/nfs/nfsdport.h
parentbcf18ca2abe838198b7009aae0f14367abf7d1b3 (diff)
downloadFreeBSD-src-953b730dd8cd92f9264f9c355979c0c5f7b54291.zip
FreeBSD-src-953b730dd8cd92f9264f9c355979c0c5f7b54291.tar.gz
MFC: r283635
Make the size of the hash tables used by the NFSv4 server tunable. No appreciable change in performance was observed after increasing the sizes of these tables and then testing with a single client. However, there was an email that indicated high CPU overheads for a heavily loaded NFSv4 and it is hoped that increasing the sizes of the hash tables via these tunables might help. The tables remain the same size by default.
Diffstat (limited to 'sys/fs/nfs/nfsdport.h')
-rw-r--r--sys/fs/nfs/nfsdport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfsdport.h b/sys/fs/nfs/nfsdport.h
index efa4b12..a20b554 100644
--- a/sys/fs/nfs/nfsdport.h
+++ b/sys/fs/nfs/nfsdport.h
@@ -88,7 +88,7 @@ struct nfsexstuff {
bcmp(&(f1)->fh_fid, &(f2)->fh_fid, sizeof(struct fid)) == 0)
#define NFSLOCKHASH(f) \
- (&nfslockhash[nfsrv_hashfh(f) % NFSLOCKHASHSIZE])
+ (&nfslockhash[nfsrv_hashfh(f) % nfsrv_lockhashsize])
#define NFSFPVNODE(f) ((struct vnode *)((f)->f_data))
#define NFSFPCRED(f) ((f)->f_cred)
OpenPOWER on IntegriCloud