kernel - Implement CPU localization hinting for low level page allocations
commit070a58b35589ef81551ad3e7ee89642411fa4680
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 7 Jan 2017 02:06:14 +0000 (6 18:06 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 7 Jan 2017 02:13:55 +0000 (6 18:13 -0800)
tree3b5c38a17b1fa83a31d450fabea953253bbf54ae
parent582f286d9b439958aa7c4f1df9cd14b05ec24e50
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.
sys/kern/lwkt_thread.c
sys/platform/pc64/x86_64/mp_machdep.c
sys/vm/vm_extern.h
sys/vm/vm_kern.c
sys/vm/vm_kern.h
sys/vm/vm_page.c
sys/vm/vm_page.h
sys/vm/vm_zeroidle.c