kernel - Allow nmbufs, nmbclusters, and nmbjclusters to be adjusted live
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Jul 2015 04:23:46 +0000 (21:23 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Jul 2015 04:23:46 +0000 (21:23 -0700)
commitb11c11e94e248e63c548d5fde5e4d0b7b8149370
tree79986eae47aead27ca7405d76d55692283711f69
parente98a16b64536a2c8cf1763570dfc0610198b4b1e
kernel - Allow nmbufs, nmbclusters, and nmbjclusters to be adjusted live

* Refactor the sysctls for kern.ipc.nmbufs, kern.ipc.nmbclusters,
  and kern.ipc.nmbjclusters, changing from read-only to read-write.
  Use SYSCTL_PROC to automatically apply changes to the object caches.

* Add a function, mbupdatelimits(), which recalculates the objcache
  limits based on nmbufs, nmbclusters, and nmbjclusters.
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h