[libvirt] [PATCH 0/4] qemu: Honor memory mode='strict'

Michal Privoznik mprivozn at redhat.com
Tue Apr 9 14:10:34 UTC 2019


If there's a domain configured as:

  <currentMemory unit='MiB'>4096</currentMemory>
  <numatune>
    <memory mode='strict' nodeset='1'/>
  </numatune>

but there is not enough memory on NUMA node 1 the domain will start
successfully because we allow it to allocate memory from other nodes.
This is a result of some previous fix (v1.2.7-rc1~91). However, I've
tested my fix successfully on a NUMA machine with F29 and recent kernel.
So the kernel bug I'm mentioning in 4/4 is probably fixed then and we
can drop the workaround.

Michal Prívozník (4):
  qemuSetupCpusetMems: Use VIR_AUTOFREE()
  qemuSetupCpusetMems: Create EMULATOR thread upfront
  qemu_cgroup: Make qemuSetupCpusetMems static
  qemuSetupCpusetCgroup: Set up cpuset.mems before execing qemu

 src/qemu/qemu_cgroup.c | 12 +++++++-----
 src/qemu/qemu_cgroup.h |  1 -
 2 files changed, 7 insertions(+), 6 deletions(-)

-- 
2.21.0




More information about the libvir-list mailing list