numactl
Numactl is a command-line utility and library for controlling NUMA (non-uniform memory access) policies on NUMA-enabled Linux systems. It allows users to run a program with a specified CPU affinity and memory allocation policy, enabling control over where code executes and where memory is allocated. This can improve performance on systems where memory access time depends on the memory node location.
The tool supports several policies and options for binding CPUs and memory to specific NUMA nodes, or
In practice, numactl is used to optimize NUMA locality for compute-intensive workloads, databases, and large-scale data
The tool is distributed as part of the numactl package on many Linux distributions and is widely