Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:Maintenance:114
xen.openSUSE_Evergreen_11.4
22326-cpu-pools-numa-placement.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 22326-cpu-pools-numa-placement.patch of Package xen.openSUSE_Evergreen_11.4
# HG changeset patch # User Juergen Gross <juergen.gross@ts.fujitsu.com> # Date 1288264929 -3600 # Node ID dc66c13a29f9af67e0258f688bcd6330cf515383 # Parent 4ac03710fc320e8f76014ca27849da03b85dff9d avoid numa placement of cpus with active cpupools When using cpupools don't pin vcpus to numa nodes as this might conflict with the cpupool definition. numa placement should be handled by cpupool configuration instead. Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Index: xen-4.0.3-testing/tools/python/xen/xend/XendCPUPool.py =================================================================== --- xen-4.0.3-testing.orig/tools/python/xen/xend/XendCPUPool.py +++ xen-4.0.3-testing/tools/python/xen/xend/XendCPUPool.py @@ -881,6 +881,11 @@ class XendCPUPool(XendBase): lookup_pool = classmethod(lookup_pool) + def number_of_pools(cls): + return len(xc.cpupool_getinfo()) + + number_of_pools = classmethod(number_of_pools) + def _cpu_number_to_ref(cls, number): node = XendNode.instance() for cpu_ref in node.get_host_cpu_refs(): Index: xen-4.0.3-testing/tools/python/xen/xend/XendDomainInfo.py =================================================================== --- xen-4.0.3-testing.orig/tools/python/xen/xend/XendDomainInfo.py +++ xen-4.0.3-testing/tools/python/xen/xend/XendDomainInfo.py @@ -2791,7 +2791,7 @@ class XendDomainInfo: return map(lambda x: x[0], sorted(enumerate(nodeload), key=lambda x:x[1])) info = xc.physinfo() - if info['nr_nodes'] > 1: + if info['nr_nodes'] > 1 and XendCPUPool.number_of_pools() < 2: node_memory_list = info['node_to_memory'] needmem = self.image.getRequiredAvailableMemory(self.info['memory_dynamic_max']) / 1024 candidate_node_list = []
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor