Blocking Oracle processes on NUMA machines after migration to SLES12
This document (7023694) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
Situation
Thousands of Oracle processes/treads are blocking in state uninterruptible sleep and CPU statistics shows high percentage values for I/O wait :
19:10:03 CPU %user %nice %system %iowait %steal %idleAlso page_misses can be observed in the sar data.
19:10:03 all 30.57 0.00 8.16 29.25 0.00 32.02
19:20:03 all 31.89 0.00 8.83 31.76 0.00 27.52
Resolution
19:40:03 CPU %user %nice %system %iowait %steal %idle
19:40:03 all 19.85 0.00 4.43 0.41 0.00 75.32
19:50:01 all 24.33 0.00 4.54 0.36 0.00 70.76
numa_balancing can be disabled by either :
echo 0 > /proc/sys/kernel/numa_balancingsysctl -w kernel.numa_balancing=0
(Note : this disables numa_balancing during runtime, but this change is not reboot persistent)To make the change persistent, create a sysctl configuration file containing the settings in /etc/sysctl.d/:
echo "kernel.numa_balancing = 0" > /etc/sysctl.d/numa_balancing.confand enable this by invoking :
sysctl --system
Cause
Larger Oracle Database Systems with hundred/thousands of threads spreaded across multiple NUMA zones are accessing common memory (SGA =System Global Area), the system tries to move memory to the appropriate NUMA zone currently executing the active process/thread, which results in permanent memory re-organisation.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023694
- Creation Date: 01-Feb-2019
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com