summaryrefslogtreecommitdiff
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2001-08-20 16:29:13 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2001-08-20 16:29:13 +0000
commite1616f3a7b6afe4767bc385f9a20d1202c76148f (patch)
treee91b19fe94e6e5b025e051b1cbef62a3175e67fc /sys/kern/subr_param.c
parent778de3590692402f3dd4bccf7b90682ee2b4b6be (diff)
Notes
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r--sys/kern/subr_param.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index 4f755badf2c0..96398dcf5474 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -116,9 +116,13 @@ init_param(void)
/* Cannot be changed after boot */
nbuf = NBUF;
TUNABLE_INT_FETCH("kern.nbuf", &nbuf);
+#ifdef VM_SWZONE_SIZE_MAX
maxswzone = VM_SWZONE_SIZE_MAX;
+#endif
TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone);
+#ifdef VM_BCACHE_SIZE_MAX
maxbcache = VM_BCACHE_SIZE_MAX;
+#endif
TUNABLE_INT_FETCH("kern.maxbcache", &maxbcache);
ncallout = 16 + maxproc + maxfiles;
TUNABLE_INT_FETCH("kern.ncallout", &ncallout);