git: kernel - Fix statistics accounting bug in kfree()

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Apr 22 19:31:34 PDT 2018


commit b8b08456e04cfcd0fbd2666ce8434c6c8393c41d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Apr 22 19:16:24 2018 -0700

    kernel - Fix statistics accounting bug in kfree()
    
    * kfree() was bumping the statistics counters for the wrong cpu.
      This could lead to kmalloc statistics slowly becoming inaccurate.
    
    * This also fixes some significant cache line bouncing under
      heavy threaded loaded.

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

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list