git: kernel - Implement CPU localization hinting for low level page allocations

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Jan 6 19:26:24 PST 2017


commit 070a58b35589ef81551ad3e7ee89642411fa4680
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jan 6 18:06:14 2017 -0800

    kernel - Implement CPU localization hinting for low level page allocations
    
    * By default vm_page_alloc() and kmem_alloc*() localize to the calling cpu.
    
    * A cpu override may be passed in the flags to make these functions localize
      differently.
    
    * Currently implemented as a test only for the pcpu globaldata, idle
      thread, and stacks for kernel threads targetted to specific cpus.

Summary of changes:
 sys/kern/lwkt_thread.c                |  6 +++++-
 sys/platform/pc64/x86_64/mp_machdep.c |  8 +++++---
 sys/vm/vm_extern.h                    |  4 ++--
 sys/vm/vm_kern.c                      | 11 ++++++++++-
 sys/vm/vm_kern.h                      | 13 +++++++++----
 sys/vm/vm_page.c                      | 22 ++++++++++++++++------
 sys/vm/vm_page.h                      |  9 +++++++--
 sys/vm/vm_zeroidle.c                  |  2 +-
 8 files changed, 55 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/070a58b35589ef81551ad3e7ee89642411fa4680


-- 
DragonFly BSD source repository



More information about the Commits mailing list