Rate This Document
Findability
Accuracy
Completeness
Readability

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.

  1. Install numactl.
    1
    yum install numactl.aarch64 -y
    
  2. 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>