]> git.ipfire.org Git - thirdparty/libvirt.git/commit
numatune: Support NUMA memory tuning in qemu driver
authorOsier Yang <jyang@redhat.com>
Mon, 20 Jun 2011 07:16:16 +0000 (15:16 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 20 Jun 2011 07:16:16 +0000 (15:16 +0800)
commita6f5c9b600875c4c4478329238a1ffa1236e4566
tree3ed534c2742c5db5e56b67ba1f7a38b641b50cec
parentd7edaf5d8c39545c5935c82b4dd953794b9ad85f
numatune: Support NUMA memory tuning in qemu driver

Implemented as setting NUMA policy between fork and exec as a hook,
using libnuma. Only support memory tuning on domain process currently.

For the nodemask out of range, will report soft warning instead of
hard error in libvirt layer. (Kernel will be silent as long as one
of set bit in the nodemask is valid on the host. E.g. For a host
has two NUMA nodes, kernel will be silent for nodemask "01010101").
So, soft warning is the only thing libvirt can do, as one might want
to specify the numa policy prior to a node that doesn't exist yet,
however, it may come as hotplug soon.
src/qemu/qemu_process.c