aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-01 06:55:23 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-01 06:55:23 +0100
commit0b086b2583584fe0f8313250bc436164f937fd35 (patch)
tree2d9a15092b212da9ce3c88d2a7abd8aabc773468 /tools/python
parenteddde6561cb81fdf442a9af0928785de135f4f3f (diff)
downloadxen-0b086b2583584fe0f8313250bc436164f937fd35.tar.gz
xen-0b086b2583584fe0f8313250bc436164f937fd35.tar.bz2
xen-0b086b2583584fe0f8313250bc436164f937fd35.zip
xend: Remove broken bits of NUMA code.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/xen/xend/XendCheckpoint.py15
-rw-r--r--tools/python/xen/xend/balloon.py29
2 files changed, 0 insertions, 44 deletions
diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py
index 50d671a1e9..1cb1cab1b7 100644
--- a/tools/python/xen/xend/XendCheckpoint.py
+++ b/tools/python/xen/xend/XendCheckpoint.py
@@ -239,21 +239,6 @@ def restore(xd, fd, dominfo = None, paused = False, relocating = False):
dominfo.destroy()
raise XendError("cannot restore non-migratable domain")
- # repin domain vcpus if a target node number was specified
- # this is done prior to memory allocation to aide in memory
- # distribution for NUMA systems.
- nodenr = -1
- for i,l in enumerate(vmconfig):
- if type(l) == type([]):
- if l[0] == 'node':
- nodenr = int(l[1])
-
- if nodenr >= 0:
- node_to_cpu = XendNode.instance().xc.physinfo()['node_to_cpu']
- if nodenr < len(node_to_cpu):
- for v in range(0, dominfo.info['VCPUs_max']):
- xc.vcpu_setaffinity(dominfo.domid, v, node_to_cpu[nodenr])
-
store_port = dominfo.getStorePort()
console_port = dominfo.getConsolePort()
diff --git a/tools/python/xen/xend/balloon.py b/tools/python/xen/xend/balloon.py
index 500ee091c4..89965d71b9 100644
--- a/tools/python/xen/xend/balloon.py
+++ b/tools/python/xen/xend/balloon.py
@@ -174,35 +174,6 @@ def free(need_mem, dominfo):
free_mem = physinfo['free_memory']
scrub_mem = physinfo['scrub_memory']
- # Check whethercurrent machine is a numa system and the new
- # created hvm has all its vcpus in the same node, if all the
- # conditions above are fit. We will wait until all the pages
- # in scrub list are freed (if waiting time go beyond 20s,
- # we will stop waiting it.)
- if physinfo['nr_nodes'] > 1 and retries == 0:
- oldnode = -1
- waitscrub = 1
- vcpus = dominfo.info['cpus'][0]
- for vcpu in vcpus:
- nodenum = xc.numainfo()['cpu_to_node'][cpu]
- if oldnode == -1:
- oldnode = nodenum
- elif oldnode != nodenum:
- waitscrub = 0
-
- if waitscrub == 1 and scrub_mem > 0:
- log.debug("wait for scrub %s", scrub_mem)
- while scrub_mem > 0 and retries < rlimit:
- time.sleep(sleep_time)
- physinfo = xc.physinfo()
- free_mem = physinfo['free_memory']
- scrub_mem = physinfo['scrub_memory']
- retries += 1
- sleep_time += SLEEP_TIME_GROWTH
- log.debug("scrub for %d times", retries)
-
- retries = 0
- sleep_time = SLEEP_TIME_GROWTH
while retries < rlimit:
physinfo = xc.physinfo()
free_mem = physinfo['free_memory']