VMs Shut Down Unexpectedly Due to Strict NUMA Memory Policy in Compute Service
Problem
Environment
Cause
Diagnostics
1
$ grep -i "CONSTRAINT_MEMORY_POLICY" /var/log/syslog[TIMESTAMP] [HOSTNAME] kernel: oom-kill:constraint=CONSTRAINT_MEMORY_POLICY,nodemask=[NUMA_NODE],cpuset=vcpu[CPU_ID],mems_allowed=[NUMA_NODE],global_oom,task=qemu-system-x86,pid=[PID],uid=[UID]
[TIMESTAMP] [HOSTNAME] kernel: Out of memory: Killed process [PID] (qemu-system-x86) total-vm:[VM_SIZE]kB, anon-rss:[RSS_SIZE]kB, file-rss:[FILE_RSS]kB, shmem-rss:0kB2
$ cat /sys/devices/system/node/node0/meminfo
$ cat /sys/devices/system/node/node1/meminfoNode 1 MemTotal: 1056888716 kB
Node 1 MemFree: 529672 kB
Node 1 MemUsed: 1056359044 kB3
$ virsh dumpxml <VM_LIBVIRT_NAME> | grep -A5 "numatune"<numatune>
<memory mode='strict' nodeset='1'/>
<memnode cellid='0' mode='strict' nodeset='1'/>
</numatune>4
$ openstack server show <VM_UUID> -c flavor+--------+-------------------+
| Field | Value |
+--------+-------------------+
| flavor | [FLAVOR_NAME] |
+--------+-------------------+$ openstack flavor show <FLAVOR_NAME> -c properties+------------+-------------------+
| Field | Value |
+------------+-------------------+
| properties | hw:numa_nodes='1' |
+------------+-------------------+Resolution
Workaround
Edit the VM XML Directly (Immediate, Not Persistent)
1
2
3
4
Additional Information
PreviousVM Console Access Failures Related to noVNC ServiceNextVM Migration Failure Which Results the VM in "ERROR" State
Last updated
