Andre Przywara
2009-Dec-10 14:07 UTC
[Xen-devel] [Patch] tools: improve NUMA guest placement when ballooning
Hi, the "guest to a single NUMA node" constrain algorithm does not work well when we do ballooning. Ballooning and NUMA don''t play together anyway, as Dom0 and thus ballooning is not NUMA aware, I am working on this but it will not be ready for the Xen 4.0 release window. The usual ballooning situation will result in an empty candidate list, as no node has enough free memory to host the guest. In this case the code will simply pick the first node: again and again, because all nodes without enough memory will be ultimately penalized with the same maxint value (regardless of the actual load). The attached patch will change this to use a relative penalty in case of not-enough memory, so that low-load low-memory nodes will be used at one point. A half loaded node has shown to be a good value, as an unbalanced system is much worse than non-local memory access for guests. Regardless of that you should restrict the Dom0 on a NUMA system to a reasonable memory size, so that ballooning is not necessary most of the time. In this case the guest''s memory will be NUMA local. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Regards, Andre. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448 3567 12 ----to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd; Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel