From 2ce9aa06e43615d5d8726b9ae516495ca88a3588 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 12 Apr 2016 21:23:44 +0000 Subject: [PATCH] Enable DEVICE_NUMA with up to 8 domains by default on amd64. 8 memory domains should handle a quad-socket board with dual-domain processors. Reviewed by: kib Relnotes: maybe? Differential Revision: https://reviews.freebsd.org/D5893 --- sys/amd64/conf/GENERIC | 1 + sys/amd64/conf/MINIMAL | 1 + sys/amd64/include/param.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC index cbe3a76977a1..0ed672dd8506 100644 --- a/sys/amd64/conf/GENERIC +++ b/sys/amd64/conf/GENERIC @@ -93,6 +93,7 @@ options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel +options DEVICE_NUMA # I/O Device Affinity # CPU frequency control device cpufreq diff --git a/sys/amd64/conf/MINIMAL b/sys/amd64/conf/MINIMAL index c822f7933734..2caf9589376a 100644 --- a/sys/amd64/conf/MINIMAL +++ b/sys/amd64/conf/MINIMAL @@ -92,6 +92,7 @@ options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel +options DEVICE_NUMA # I/O Device Affinity # CPU frequency control device cpufreq diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h index 5892ae954ec2..a619e3950d63 100644 --- a/sys/amd64/include/param.h +++ b/sys/amd64/include/param.h @@ -72,7 +72,7 @@ #endif #ifndef MAXMEMDOM -#define MAXMEMDOM 1 +#define MAXMEMDOM 8 #endif #define ALIGNBYTES _ALIGNBYTES