From: Ian Campbell Subject: Re: RFC: Still TODO for 4.2? xl domain numa memory allocation vs xm/xend Date: Fri, 20 Jan 2012 16:21:34 +0000 Message-ID: <1327076495.30054.63.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> <1327065091.30054.43.camel@zakaz.uk.xensource.com> <1327071976.30054.55.camel@zakaz.uk.xensource.com> <1327075340.2337.50.camel@Abyss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327075340.2337.50.camel@Abyss> 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 16:02 +0000, Dario Faggioli wrote: > On Fri, 2012-01-20 at 15:06 +0000, Ian Campbell wrote: > > On Fri, 2012-01-20 at 13:11 +0000, Ian Campbell wrote: > > > > > Your patches do the affinity setting pretty early so I'm not sure what's > > > going on. > > > > The cpu affinities are set and d->node_affinity is getting correctly > > updated to only include one node before any memory is allocated to the > > domain, yet memory appears to be being allocated on both nodes. > > > I'm also looking into this and NOT finding an answer... Yet. Will keep > investigating and report back as soon as I get what's happening... I think I made the rather basic c*ckup of using a domain configured with more memory than is in any single node. /me dons the brown paper bag. With your affinity patches and the domain restricted to a single node via cpu affinity The Right Thing seems to happen. cpupools don't seem to do this, I don't know if that is expected or not. Ian.