summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfs.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/nfs.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/nfs.h')
-rw-r--r--sys/fs/nfs/nfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nfs/nfs.h b/sys/fs/nfs/nfs.h
index 2ee9145..be60c1c 100644
--- a/sys/fs/nfs/nfs.h
+++ b/sys/fs/nfs/nfs.h
@@ -138,11 +138,11 @@
/*
* This macro defines the high water mark for issuing V4 delegations.
- * (It is currently set at a conservative 20% of NFSRV_V4STATELIMIT. This
+ * (It is currently set at a conservative 20% of nfsrv_v4statelimit. This
* may want to increase when clients can make more effective use of
* delegations.)
*/
-#define NFSRV_V4DELEGLIMIT(c) (((c) * 5) > NFSRV_V4STATELIMIT)
+#define NFSRV_V4DELEGLIMIT(c) (((c) * 5) > nfsrv_v4statelimit)
#define NFS_READDIRBLKSIZ DIRBLKSIZ /* Minimal nm_readdirsize */
OpenPOWER on IntegriCloud