git: kernel - Make kern_proc cache-friendly

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 5 15:13:20 PST 2016


commit 43fdf49008ec87f6742547d87923237e86fa3b56
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Dec 5 15:01:10 2016 -0800

    kernel - Make kern_proc cache-friendly
    
    * Make the proc_tokens[], allprocs[], allpgrps[], and allsessn[]
      arrays cache-friendly by aggregating them into a cache-aligned
      struct procglob.
    
    * Doesn't do much for the token array, but should help
      allprocs/allpgrps/allsessn scans whos structures were previously
      8-byte aligned.

Summary of changes:
 lib/libkvm/kvm_proc.c |  10 ++-
 sys/kern/kern_proc.c  | 181 ++++++++++++++++++++++++++++++--------------------
 sys/sys/proc.h        |   8 +++
 3 files changed, 123 insertions(+), 76 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/43fdf49008ec87f6742547d87923237e86fa3b56


-- 
DragonFly BSD source repository


More information about the Commits mailing list