From: Keir Fraser Date: Tue, 1 Jun 2010 05:55:23 +0000 (+0100) Subject: xend: Remove broken bits of NUMA code. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12049 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0b086b2583584fe0f8313250bc436164f937fd35;p=xen.git xend: Remove broken bits of NUMA code. Signed-off-by: Keir Fraser --- 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']