]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virLXCControllerSetupResourceLimits: Call virNuma*() iff needed
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Mar 2015 10:44:55 +0000 (11:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Apr 2015 10:01:10 +0000 (12:01 +0200)
commit362566880fb749375bc9035d938b57e58b71a4b9
tree9cc2005c146998984816baced1f386b1066f3a1a
parent7cd0cf05f7277805345f2d792e306d43cadb0fce
virLXCControllerSetupResourceLimits: Call virNuma*() iff needed

Like we are doing in qemu driver (ea576ee543d6fb95583), lets call
virNumaSetupMemoryPolicy() only if really needed. Problem is, if
we numa_set_membind() child, there's no way to change it from the
daemon afterwards. So any later attempts to change the pinning
will fail. But in very weird way - CGroups will be set, but due
to membind child will not allocate memory from any other node.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_controller.c