From: Ian Campbell Subject: Re: RFC: Still TODO for 4.2? xl domain numa memory allocation vs xm/xend Date: Fri, 20 Jan 2012 13:11:30 +0000 Message-ID: <1327065091.30054.43.camel@zakaz.uk.xensource.com> References: <1325694562.25206.304.camel@zakaz.uk.xensource.com> <20120119211430.GT12984@reaktio.net> <1327046368.21391.29.camel@dagon.hellion.org.uk> <1327058562.17599.134.camel@zakaz.uk.xensource.com> <1327059874.2337.38.camel@Abyss> <1327060480.30054.15.camel@zakaz.uk.xensource.com> <1327061083.2337.42.camel@Abyss> <1327062788.30054.31.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327062788.30054.31.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dario Faggioli Cc: xen-devel , "Keir (Xen.org)" , Stefano Stabellini , George Dunlap , "Tim (Xen.org)" , Ian Jackson , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Fri, 2012-01-20 at 12:33 +0000, Ian Campbell wrote: > On Fri, 2012-01-20 at 12:04 +0000, Dario Faggioli wrote: > > On Fri, 2012-01-20 at 11:54 +0000, Ian Campbell wrote: > > > > > Of course, even in such mode, if the user explicitly tells us what he > > > > wants, e.g., by means of cpupools, pinning, etc., we should still honour > > > > such request. > > > > > > Do we get this right now? > > > > > Sorry, not sure what you mean here... > > I meant is "if the user explicitly tells us what he wants, e.g., by > means of cpupools, pinning, etc." do we still honour such request? It appears that with cpupools we do not. After running cpupool-numa-split I started a guest with pool=Pool-node1 and got: # xl cpupool-list Name CPUs Sched Active Domain count Pool-node0 8 credit y 1 Pool-node1 8 credit y 1 (so dom0 on node0, guest on node 1) but: (XEN) Memory location of each domain: (XEN) Domain 0 (total: 131072): (XEN) Node 0: 61098 (XEN) Node 1: 69974 (XEN) Domain 1 (total: 6290427): (XEN) Node 0: 3407101 (XEN) Node 1: 2883326 With your patches to support vcpu pin and giving the guest vcpus="8-15" I see effectively the same thing. (xl vcpu-list shows the affinity is correct, so your patches seem correct in that regard). Your patches do the affinity setting pretty early so I'm not sure what's going on. Ian.