git: kernel - Code path optimization for kmalloc/kfree

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 25 22:18:15 PST 2020


commit f21dfc749c1820a06925dbfa94251c7caf7a50a9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 25 22:07:22 2020 -0800

    kernel - Code path optimization for kmalloc/kfree
    
    * Use __read_frequently for numerous variables.
    
    * Increase the pcpu slab cache on high-memory machines.  This reduces
      kernel_map and smpinvltlb interactions.
    
    * Get rid of the ZoneGenAlloc and ZoneBigAlloc sysctl tracking
      variables.  These were causing unnecessary frequent cache line
      bouncing between cpus.
    
      Also get rid of SlabsFreed and SlabsAllocated.
    
    * Get rid of unused sysctl variables.
    
    * Make the on-kfree bcopy of weirdary optional (default OFF now).
      It was previously unconditional and on by default.

Summary of changes:
 sys/kern/kern_slaballoc.c | 71 ++++++++++++++++++++---------------------------
 1 file changed, 30 insertions(+), 41 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list