]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add two new kernel options to control memory locality on NUMA hardware.
authorjeff <jeff@FreeBSD.org>
Tue, 6 Aug 2019 21:50:34 +0000 (21:50 +0000)
committerjeff <jeff@FreeBSD.org>
Tue, 6 Aug 2019 21:50:34 +0000 (21:50 +0000)
commit807c696ddc882c8da16f873d1bc5f2ee7068d9f8
tree8270122d8630fa2c46d44c6c4a8a95fab4821103
parent798cd23a8eba941add3b90422f8d9667b4fa102c
Add two new kernel options to control memory locality on NUMA hardware.
 - UMA_XDOMAIN enables an additional per-cpu bucket for freed memory that
   was freed on a different domain from where it was allocated.  This is
   only used for UMA_ZONE_NUMA (first-touch) zones.
 - UMA_FIRSTTOUCH sets the default UMA policy to be first-touch for all
   zones.  This tries to maintain locality for kernel memory.

Reviewed by: gallatin, alc, kib
Tested by: pho, gallatin
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D20929
lib/libmemstat/memstat.c
lib/libmemstat/memstat.h
lib/libmemstat/memstat_internal.h
lib/libmemstat/memstat_uma.c
sys/conf/options
sys/vm/uma.h
sys/vm/uma_core.c
sys/vm/uma_int.h
sys/vm/vm_phys.c
sys/vm/vm_phys.h
usr.bin/vmstat/vmstat.c