git: kernel - Tune zalloc/zfree a bit more

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 19 23:04:43 PST 2025


commit 662e5e1463acb7060040870aa21ca448d3655a11
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Dec 19 23:00:30 2025 -0800

    kernel - Tune zalloc/zfree a bit more
    
    * Adjust the hysteresis to improve margins and use opportunistic
      spin locks more often.  The desired cache levels will be adjusted
      in 10% chunks opportunistically and not back-off into blocking spin
      locks until cache levels are 40% off desired targets.
    
    * Increase zmax_pcpu by 2x.  Allow more entries to be cached in the
      per-cpu caches, reducing the need to drop into the per-zone pool
      (which requires the spin lock).

Summary of changes:
 sys/vm/vm_zone.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/662e5e1463acb7060040870aa21ca448d3655a11


-- 
DragonFly BSD source repository


More information about the Commits mailing list