Enabling the NUMA Feature
Yarn 3.1.0 introduces support for enabling NUMA-awareness when containers are started. This feature works by detecting the CPU cores and memory capacity of each NUMA node on the physical machine. When a container is started, you can use the numactl command to specify the CPU range and membind range, reducing cross-node memory access.
- Install numactl.
1yum install numactl.aarch64 -y
- Modify the yarn-site.xml file as follows to enable NUMA awareness.
<property> <name>yarn.nodemanager.numa-awareness.enabled</name> <value>true</value> </property> <property> <name>yarn.nodemanager.numa-awareness.read-topology</name> <value>true</value> </property>
Parent topic: HBase Tuning