From: Wei Liu Subject: Re: PV-vNUMA issue: topology is misinterpreted by the guest Date: Fri, 17 Jul 2015 09:44:11 +0100 Message-ID: <20150717084411.GE12455@zion.uk.xensource.com> References: <55A7A7F40200007800091D60@mail.emea.novell.com> <55A78DF2.1060709@citrix.com> <20150716152513.GU12455@zion.uk.xensource.com> <55A7D17C.5060602@citrix.com> <55A7D2CC.1050708@oracle.com> <55A7F7F40200007800092152@mail.emea.novell.com> <55A7DE45.4040804@citrix.com> <55A7E2D8.3040203@oracle.com> <55A8B83802000078000924AE@mail.emea.novell.com> <1437118075.23656.25.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZG1Fh-000337-Nb for xen-devel@lists.xenproject.org; Fri, 17 Jul 2015 08:44:17 +0000 Content-Disposition: inline In-Reply-To: <1437118075.23656.25.camel@citrix.com> 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: Elena Ufimtseva , Wei Liu , Andrew Cooper , David Vrabel , Jan Beulich , "xen-devel@lists.xenproject.org" , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On Fri, Jul 17, 2015 at 09:27:55AM +0200, Dario Faggioli wrote: > On Fri, 2015-07-17 at 07:09 +0100, Jan Beulich wrote: > > >>> On 16.07.15 at 18:59, wrote: > > > And in general (both for PV and HVM) --- is there any reason to expose > > > CPU topology at all? I can see it being useful if VCPUs are pinned but > > > if they are not then it can make performance worse. > > > > Indeed > > > Indeed indeed. :-) > > And in fact, this is even independent from vNUMA. Yet, I remember we > were discussing about this since the beginning of vNUMA work, back when > it was Elena doing it, but the it seems we all forgot... Sorry for > that! :-/ > > I seriously think we should do something about this as, while in a non > vNUMA setup it can certainly cause weird/inconsistent performance, in a > vNUMA one, as shown, it's quite a hige mess. > > > - that's what our kernels have been doing for years, and > > it seems like someone over here is now looking into whether this > > could be done in pv-ops too (without too much uglification). > > > That would be great, IMO. I'd be up for helping with this, but I know > next to nothing about CPUID, so that would require some setup time. If, > at least, you could keep me in the loop it would be great. > > In the meanwhile, what should we do? Document this? How? "don't use > vNUMA with PV guest in SMT enabled systems" seems a bit harsh... Is > there a workaround we can put in place/suggest? > Don't worry. PV vNUMA kernel patch is not upstreamed. :-P This is one of the issues that is not upstreamed. The other issue is my own laziness... Wei. > Regards, > Dario > -- > <> (Raistlin Majere) > ----------------------------------------------------------------- > Dario Faggioli, Ph.D, http://about.me/dario.faggioli > Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)