From: Wei Liu Subject: Re: [PATCH v6 00/10] vnuma introduction Date: Tue, 22 Jul 2014 17:47:54 +0100 Message-ID: <20140722164754.GE6448@zion.uk.xensource.com> References: <1405662609-31486-1-git-send-email-ufimtseva@gmail.com> <20140718095359.GA5687@zion.uk.xensource.com> <1405678416.5333.179.camel@Solace> <20140718114834.GI7142@zion.uk.xensource.com> <1406037824.17850.46.camel@Solace> <20140722144846.GB6448@zion.uk.xensource.com> <1406041597.17850.74.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1406041597.17850.74.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: keir@xen.org, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, george.dunlap@eu.citrix.com, msw@linux.com, lccycc123@gmail.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, JBeulich@suse.com, Elena Ufimtseva , Wei Liu List-Id: xen-devel@lists.xenproject.org On Tue, Jul 22, 2014 at 05:06:37PM +0200, Dario Faggioli wrote: [...] > > > > With the following guest configuration, in terms of vcpu pinning: > > > > > > 1) 2 vCPUs ==> same pCPUs > > > > 4 vcpus, I think. > > > > > root@benny:~# xl vcpu-list > > > Name ID VCPU CPU State Time(s) CPU Affinity > > > debian.guest.osstest 9 0 0 -b- 2.7 0 > > > debian.guest.osstest 9 1 0 -b- 5.2 0 > > > debian.guest.osstest 9 2 7 -b- 2.4 7 > > > debian.guest.osstest 9 3 7 -b- 4.4 7 > > > > What I meant with "2 vCPUs" was that I was putting 2 vCPUs of the guest > (0 and 1) on the same pCPU (0), and the other 2 (2 and 3) on another > (7). > > That should have meant a topology that does not share at least the least > cache level in the guest, but it is not. > I see. > > > 2) no SMT > > > root@benny:~# xl vcpu-list > > > Name ID VCPU CPU State Time(s) CPU [...] > So, no, that is not giving the same result as in Dom0. :-( > > > > This is not the case for dom0 where (I booted with dom0_max_vcpus=4 on > > > the xen command line) I see this: > > > > > > > I guess this is because you're basically picking pcpu 0-3 for Dom0. It > > doesn't matter if you pin them or not. > > > That makes total sense, and in fact, I was not surprised about Dom0 > looking like this... I rather am about not being able to get a similar > topology for the guest, no matter how I pin it... :-/ > I guess it might also be related to the different CPUID policy Dom0 and DomU have. Though in theory Dom0 and DomU are both PV domains they see different CPUIDs, I think. I only studied code to the point that I was able to manipulate topology as I saw fit, so I could be wrong... Wei > Dario > > -- > <> (Raistlin Majere) > ----------------------------------------------------------------- > Dario Faggioli, Ph.D, http://about.me/dario.faggioli > Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) >