git: kernel - Add some sysctls to kmalloc_obj

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Mar 21 22:46:13 PDT 2021


commit e21a70fe3351222ade0b18cd6d5ba408305c50bf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Mar 21 22:42:35 2021 -0700

    kernel - Add some sysctls to kmalloc_obj
    
    * kern.kzone_pollfreq (default 1hz) - Set polling frequency for
      kmalloc zone cleanups.
    
    * kern.kzone_bretire (default 4) - Set number of zones the kmalloc
      poller can retire per interval.  Too high a number can create
      noticable system stalls due to kernel_map operations.
    
    * Add a few more fields to the kmalloc_mgt structure.  Track
      retirement count to help with debugging.

Summary of changes:
 sys/kern/kern_kmalloc.c   |  5 ++++-
 sys/kern/kern_slaballoc.c | 16 +++++++++++++---
 sys/sys/_malloc.h         |  3 +++
 3 files changed, 20 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list