9.2. NUMA Memory Allocation Policies
- Strict policy means that the allocation will fail if the memory cannot be allocated on the target node.Specifying a NUMA nodeset list without defining a memory mode attribute defaults to
- Memory pages are allocated across nodes specified by a nodeset, but are allocated in a round-robin fashion.
- Memory is allocated from a single preferred memory node. If sufficient memory is not available, memory can be allocated from other nodes.
<memory mode>element of the domain XML file:
<numatune> <memory mode='preferred' nodeset='0'> </numatune>
strictmode and the guest does not have sufficient swap space, the kernel will kill some guest processes to retrieve additional memory. Red Hat recommends using
preferredallocation and specifying a single nodeset (for example, nodeset='0') to prevent this situation.