summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-04-09 13:58:04 +0000
committerjhb <jhb@FreeBSD.org>2016-04-09 13:58:04 +0000
commit6beb82443a9241c4c9035f9b1df9d1358154592c (patch)
treecd8ee1473372af94096c75121cdad26c77602e58 /sys/conf
parentae5846b336d36050c2a80b867d117f4bf2f3d907 (diff)
downloadFreeBSD-src-6beb82443a9241c4c9035f9b1df9d1358154592c.zip
FreeBSD-src-6beb82443a9241c4c9035f9b1df9d1358154592c.tar.gz
Add more fine-grained kernel options for NUMA support.
VM_NUMA_ALLOC is used to enable use of domain-aware memory allocation in the virtual memory system. DEVICE_NUMA is used to enable affinity reporting for devices such as bus_get_domain(). MAXMEMDOM must still be set to a value greater than for any NUMA support to be effective. Note that 'cpuset -gd' always works if MAXMEMDOM is enabled and the system supports NUMA. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5782
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/NOTES10
-rw-r--r--sys/conf/options2
2 files changed, 11 insertions, 1 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 42570fe..ec5618c 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -229,7 +229,15 @@ options MAXCPU=32
# MAXMEMDOM defines the maximum number of memory domains that can boot in the
# system. A default value should already be defined by every architecture.
-options MAXMEMDOM=1
+options MAXMEMDOM=2
+
+# VM_NUMA_ALLOC enables use of memory domain-aware allocation in the VM
+# system.
+options VM_NUMA_ALLOC
+
+# DEVICE_NUMA enables reporting of domain affinity of I/O devices via
+# bus_get_domain(), etc.
+options DEVICE_NUMA
# ADAPTIVE_MUTEXES changes the behavior of blocking mutexes to spin
# if the thread that currently owns the mutex is executing on another
diff --git a/sys/conf/options b/sys/conf/options
index f2fef26..2283705 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -90,6 +90,7 @@ COMPAT_LINUXKPI opt_compat.h
COMPILING_LINT opt_global.h
CY_PCI_FASTINTR
DEADLKRES opt_watchdog.h
+DEVICE_NUMA
EXT_RESOURCES opt_global.h
DIRECTIO
FILEMON opt_dontuse.h
@@ -603,6 +604,7 @@ VM_KMEM_SIZE opt_vm.h
VM_KMEM_SIZE_SCALE opt_vm.h
VM_KMEM_SIZE_MAX opt_vm.h
VM_NRESERVLEVEL opt_vm.h
+VM_NUMA_ALLOC opt_vm.h
VM_LEVEL_0_ORDER opt_vm.h
NO_SWAPPING opt_vm.h
MALLOC_MAKE_FAILURES opt_vm.h
OpenPOWER on IntegriCloud