summaryrefslogtreecommitdiff
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2013-01-15 19:26:17 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2013-01-15 19:26:17 +0000
commit17ebe960a678e143b101ea90f99c1a1ae9335f70 (patch)
tree52a94d743c3be86d898915889c3d13abb39f546d /sys/kern/subr_param.c
parentc995301b2d0470642c46aea77de67a37a8e1018f (diff)
Notes
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r--sys/kern/subr_param.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index fcb41e717d4a..76716150a216 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -326,8 +326,11 @@ init_param2(long physpages)
/*
* XXX: Does the callout wheel have to be so big?
+ *
+ * Clip callout to result of previous function of maxusers maximum
+ * 384. This is still huge, but acceptable.
*/
- ncallout = 16 + maxproc + maxfiles;
+ ncallout = imin(16 + maxproc + maxfiles, 18508);
TUNABLE_INT_FETCH("kern.ncallout", &ncallout);
/*