]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
numad: Convert node list to cpumap before setting affinity
authorOsier Yang <jyang@redhat.com>
Mon, 16 Apr 2012 10:04:27 +0000 (18:04 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 16 Apr 2012 10:09:05 +0000 (18:09 +0800)
commitccf80e36301d538505c5c053cf369a61d4671831
treea7d0d5bc66c3418841aa5f2529f90888db9339ef
parent360a88c317ac558b3828dd253fd684c7aa062bdc
numad: Convert node list to cpumap before setting affinity

Instead of returning a CPUs list, numad returns NUMA node
list instead, this patch is to convert the node list to
cpumap before affinity setting. Otherwise, the domain
processes will be pinned only to CPU[$numa_cell_num],
which will cause significiant performance losses.

Also because numad will balance the affinity dynamically,
reflecting the cpuset from numad back doesn't make much
sense then, and it may just could produce confusion for
the users. Thus the better way is not to reflect it back
to XML. And in this case, it's better to ignore the cpuset
when parsing XML.

The codes to update the cpuset is removed in this patch
incidentally, and there will be a follow up patch to ignore
the manually specified "cpuset" if "placement" is "auto",
and document will be updated too.
src/qemu/qemu_process.c