From: Gianluca Guida Subject: Re: Poor HVM performance with 8 vcpus Date: Wed, 7 Oct 2009 18:37:59 +0200 Message-ID: References: <4ACC3B49.4060500@ts.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4ACC3B49.4060500@ts.fujitsu.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: Juergen Gross Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi, On Wed, Oct 7, 2009 at 8:55 AM, Juergen Gross wrote: > we've got massive performance problems running a 8 vcpu HVM-guest (BS2000= ) > under XEN (xen 3.3.1). > > With a specific benchmark producing a rather high load on memory manageme= nt > operations (lots of process creation/deletion and memory allocation) the = 8 > vcpu performance was worse than the 4 vcpu performance. On other platform= s > (/390, MIPS, SPARC) this benchmark scaled rather well with the number of = cpus. > > The result of the usage of the software performance counters of XEN seeme= d > to point to the shadow lock being the reason. I modified the Hypervisor t= o > gather some lock statistics (patch will be sent soon) and found that the > shadow lock is really the bottleneck. On average 4 vcpus are waiting to g= et > the lock! > > Is this a known issue? Acutally, I think so. The OOS optimization is widely known not to be too scalable at 8vcpus in the current state, since its weak point is the CR3 switching time increasing linearly with the number of cpus. If you have lot of processes switches together with lot of PTE writings (as it seems to be the case for your benchmark) then that's probably the cause. Could you try disabling the OOS optimization from the SHADOW_OPTIMIZATIONS definition? Thanks, Gianluca > Is there a chance to split the shadow lock into sub-locks or to use a > reader/writer lock instead? > I just wanted to ask before trying to understand all of the shadow code := -) > > > Juergen > > -- > Juergen Gross =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Principal Developer Operati= ng Systems > TSP ES&S SWE OS6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Telephone: += 49 (0) 89 636 47950 > Fujitsu Technolgy Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 e-mail: juergen.g= ross@ts.fujitsu.com > Otto-Hahn-Ring 6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Internet:= ts.fujitsu.com > D-81739 Muenchen =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Company details: ts.fuji= tsu.com/imprint.html > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > --=20 It was a type of people I did not know, I found them very strange and they did not inspire confidence at all. Later I learned that I had been introduced to electronic engineers. E. W. Dijkstra