NUMA Performance Optimization (文档 ID 1488175.1) |
In this Document
APPLIES TO: Linux OS - Version 2.6.18 and later System performance can vary with system load, as memory allocations may be satisfied by using local memory, or by using remote memory from a different cluster node. Performance anomalies include unexpected swap store usage; unexpectedly poor performance; or system out-of-memory process terminations while sufficient memory and swap space appear available. The Linux kernel may satisfy its dynamic memory allocations using either local or remote memory in a NUMA system; this is its default operation. The kernel tries to keep memory allocation local, but may choose to use remote memory. While this does allow the kernel or process to keep running, there can be a significant performance penalty. Observe the current kernel memory allocation policy: # /sbin/sysctl vm.zone_reclaim_mode 0
The default value of vm.zone_reclaim_mode is 0. Add an entry in the /etc/sysctl.conf file to select a different policy: vm.zone_reclaim_mode = 6 This will prevent the local node from allocating VM pages on a different cluster node. After modified /etc/sysctl.conf, please make the modification take effect by: # /sbin/sysctl -p There is a related setting which determines how frequently local memory is scavenged: # cat /proc/sys/vm/zone_reclaim_interval 30 This value can be decreased if unwanted off-node allocations still take place: vm.zone_reclaim_interval = 10 This causes the reclaimation scan every 10 seconds as opposed to the default value of 30 seconds. For a more complete description of the possible values for these settings, please ensure that the kernel-doc RPM package is installed, and consult the/usr/share/doc/kernel-doc-2.6.18/Documentation/sysctl/vm.txt file..
The zone_reclaim_mode is two-edged sword for performance issue. swapper: page allocation failure. order:1, mode:0x20 these are symptomatic of memory pressue. In such a situation, enable zone reclaimation by setting vm.zone_reclaim_mode=1 to allow the off-node allocations to succeed. |