]> xenbits.xensource.com Git - xen.git/commit
libxl: avoid considering pCPUs outside of the cpupool during NUMA placement
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 21 Oct 2016 13:49:30 +0000 (15:49 +0200)
committerWei Liu <wei.liu2@citrix.com>
Fri, 21 Oct 2016 13:56:07 +0000 (14:56 +0100)
commit4a6070ea95b17e5c5f051ebe6886783dd50e911c
tree3d0190aa8cd948bd160f93c4dcbf96e190f7049d
parent7e12213fdc736ec5b9bb978ea95391658e0ad4e7
libxl: avoid considering pCPUs outside of the cpupool during NUMA placement

During NUMA automatic placement, the information
of how many vCPUs can run on what NUMA nodes is used,
in order to spread the load as evenly as possible.

Such information is derived from vCPU hard and soft
affinity, but that is not enough. In fact, affinity
can be set to be a superset of the pCPUs that belongs
to the cpupool in which a domain is but, of course,
the domain will never run on pCPUs outside of its
cpupool.

Take this into account in the placement algorithm.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reported-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_numa.c