All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xend: move pincpu op before memory op again
@ 2005-12-08 17:46 Ryan Harper
  2005-12-08 18:18 ` Ewan Mellor
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Harper @ 2005-12-08 17:46 UTC (permalink / raw)
  To: xen-devel

Looks like someone merged and moved the pincpu operation to after the
memory reservation and didn't read the comments I left in the code:

# repin domain vcpus if a restricted cpus list is provided
# this is done prior to memory allocation to aide in memory
# distribution for NUMA systems.

This patch moves the pincpu op back to where it was.

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com


diffstat output:
 XendDomainInfo.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
---
diff -r 5f574f9cb4bd tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py	Wed Dec  7 11:57:26 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Dec  8 11:42:26 2005
@@ -1165,11 +1165,6 @@
 
             xc.domain_setcpuweight(self.domid, self.info['cpu_weight'])
 
-            m = self.image.getDomainMemory(self.info['memory'] * 1024)
-            balloon.free(m)
-            xc.domain_setmaxmem(self.domid, m)
-            xc.domain_memory_increase_reservation(self.domid, m, 0, 0)
-
             # repin domain vcpus if a restricted cpus list is provided
             # this is done prior to memory allocation to aide in memory
             # distribution for NUMA systems.
@@ -1179,6 +1174,11 @@
                     # pincpu takes a list of ints
                     cpu = [ int( cpus[v % len(cpus)] ) ]
                     xc.domain_pincpu(self.domid, v, cpu)
+
+            m = self.image.getDomainMemory(self.info['memory'] * 1024)
+            balloon.free(m)
+            xc.domain_setmaxmem(self.domid, m)
+            xc.domain_memory_increase_reservation(self.domid, m, 0, 0)
 
             self.createChannels()

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] xend: move pincpu op before memory op again
  2005-12-08 17:46 [PATCH] xend: move pincpu op before memory op again Ryan Harper
@ 2005-12-08 18:18 ` Ewan Mellor
  0 siblings, 0 replies; 2+ messages in thread
From: Ewan Mellor @ 2005-12-08 18:18 UTC (permalink / raw)
  To: Ryan Harper; +Cc: xen-devel

On Thu, Dec 08, 2005 at 11:46:21AM -0600, Ryan Harper wrote:

> Looks like someone merged and moved the pincpu operation to after the
> memory reservation and didn't read the comments I left in the code:
> 
> # repin domain vcpus if a restricted cpus list is provided
> # this is done prior to memory allocation to aide in memory
> # distribution for NUMA systems.
> 
> This patch moves the pincpu op back to where it was.

D'oh!  Sorry.  Applied.

Ewan.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-08 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08 17:46 [PATCH] xend: move pincpu op before memory op again Ryan Harper
2005-12-08 18:18 ` Ewan Mellor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.