Is NUMA balancer enabled by default in recent Linux versions? If so how can I disable the NUMA balancer please let me know.
Numa balancer in Linux
11k views Asked by Pradeep Jagadeesh At
2
There are 2 answers
0
On
The automatic NUMA balancing can be disabled by passing the numa_balancing=disable
parameter to the kernel. The exact way of doing so depends on the boot loader in use. The same parameter could be controlled via the kernel.numa_balancing
sysctl:
echo 0 > /proc/sys/kernel/numa_balancing
or
sysctl -w kernel.numa_balancing=0
It could also be set in /etc/sysctl.conf
on distributions that process that file.
This depends on which distribution you are on and the underlying hardware. NUMA should be enabled in the BIOS. To check if NUMA is disabled on your linux use:
this returns No NUMA configuration found, when NUMA enabled, dmesg does not show any information of NUMA initialization.
If NUMA is enabled in BIOS, then execute the command
numactl --hardware
to list the available nodes on the system.Note, you can also set
numa=off
to disable ingrub.conf
, but its best to change it using BIOS settings.