From: Ian Campbell Subject: Re: RFC: Still TODO for 4.2? xl domain numa memory allocation vs xm/xend Date: Mon, 23 Jan 2012 10:19:55 +0000 Message-ID: <1327313995.24561.13.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> <1327076495.30054.63.camel@zakaz.uk.xensource.com> <1327076924.30054.65.camel@zakaz.uk.xensource.com> <1327077068.23358.97.camel@elijah> <1327077590.30054.71.camel@zakaz.uk.xensource.com> <1327077796.23358.98.camel@elijah> <1327078460.30054.74.camel@zakaz.uk.xensource.com> <1327080768.2337.65.camel@Abyss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327080768.2337.65.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)" , Juergen Gross , Ian Jackson , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Fri, 2012-01-20 at 17:32 +0000, Dario Faggioli wrote: > On Fri, 2012-01-20 at 16:54 +0000, Ian Campbell wrote: > > I confused myself into thinking that cpupools ~= NUMA because I've only > > used cpupool-numa-split but I can see that you might also divide your > > cpus up some other way. > > > Yeah, indeed, although the numa-split case looks like the most useful > one to me. > > > Should that same union be used for d->node_affinity though? It seems > > like it would make sense. > > > According to me, it should. I agree. One idea I had over the weekend is that we could support a special 'cpus="pool"' syntax to mean "pin this guest to the node I configured it to be in". I think this is a second best option to simply having d->node_affinity reflect the pool though. > Then, at least right now, moving it would > probably kill its performances because all its memory will be far away, > while right now it's all more "stochastic". Yes, in some sense the xend behaviour is best case good behaviour and worse case bad behaviour, while xl has a more average/consistent behaviour across the range. In practice however I suspect xend probably hits the good cases more often than not. > Still, I think it should be done, as if you place a domain in a cpupool > at its creation, I think the case of moving it away from there would be > quite rare. Agreed. Ian.