diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2013-01-15 19:26:17 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2013-01-15 19:26:17 +0000 |
commit | 17ebe960a678e143b101ea90f99c1a1ae9335f70 (patch) | |
tree | 52a94d743c3be86d898915889c3d13abb39f546d | |
parent | c995301b2d0470642c46aea77de67a37a8e1018f (diff) |
Notes
-rw-r--r-- | sys/kern/subr_param.c | 5 |
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); /* |