git: kernel - Allow nmbufs, nmbclusters, and nmbjclusters to be adjusted live

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jul 23 21:26:43 PDT 2015


commit b11c11e94e248e63c548d5fde5e4d0b7b8149370
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jul 23 21:23:46 2015 -0700

    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.

Summary of changes:
 sys/kern/uipc_mbuf.c | 161 +++++++++++++++++++++++++++++++++++++++++++++++----
 sys/sys/mbuf.h       |   1 +
 2 files changed, 152 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b11c11e94e248e63c548d5fde5e4d0b7b8149370


-- 
DragonFly BSD source repository


More information about the Commits mailing list