Make the kern.ipc.nmbclusters and kern.ipc.nmbufs sysctls read-only.
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 13 May 2007 22:56:59 +0000 (22:56 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 13 May 2007 22:56:59 +0000 (22:56 +0000)
commit18c48b9c6e9b8151cf939dd56153fc9db2c38c5a
treec8352cf66792ec921534a5b0619194091d40874d
parent56be84544ab547a6ff5bb12604269ba241ab491d
Make the kern.ipc.nmbclusters and kern.ipc.nmbufs sysctls read-only.
These may only be set as boot-time variables in /boot/loader.conf.

Adjusting them after the fact w/sysctl will not update the objcache limits
and will cause a ton of confusion because then netstat -m will report
the adjusted limits but the system won't actually be using the adjusted
limits.

objcache mbuf limits can be adjusted dynamically, we just need some code to
do it -> for the future!

Reported-by: Peter Avalos <pavalos@theshell.com>
sys/kern/uipc_mbuf.c