Numa balancer in Linux

Pradeep Jagadeesh picture Pradeep Jagadeesh · Dec 2, 2014 · Viewed 8.5k times · Source

Is NUMA balancer enabled by default in recent Linux versions? If so how can I disable the NUMA balancer please let me know.

Answer

Hristo 'away' Iliev picture Hristo 'away' Iliev · Apr 11, 2016

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.