From: "George Dunlap" Subject: Re: Re: Poor performance on HVM (kernbench) Date: Thu, 11 Sep 2008 19:07:56 +0100 Message-ID: References: <1e16a9ed0809101123m71a12030v7d06501f6467f93@mail.gmail.com> <1e16a9ed0809101422p6a58304dxaa1a92847109a518@mail.gmail.com> <48C8EC48.6080507@eu.citrix.com> <48C9367B.6090003@eu.citrix.com> <1e16a9ed0809110835p73165150t3f78d75b2f2ca8eb@mail.gmail.com> <48C9548C.4060709@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48C9548C.4060709@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gianluca Guida Cc: Muli Ben-Yehuda , deshantm@gmail.com, Anthony Liguori , xen-devel mailing list List-Id: xen-devel@lists.xenproject.org So, the problem appears to be with a ton of brute-force searches to remove writable mappings, both during resync and promotion. My analysis tool is reporting that of the 30 seconds or so in the trace from xen-unstable, the guest spent a whopping 67% in the hypervisor: * 26% doing resyncs as a result of marking another page out-of-sync * 9% promoting pages * 27% resyncing as a result of cr3 switches And almost the entirety of all of those can be attributed to brute-force searches to remove writable mappings. (Caveat emptor: My tool was designed to analyze XenServer product traces, which have a different trace file format than xen-unstable. I've just taught it to read the xen-unstable trace formats, so the exact percentages may be incorrect still. But the preponderance of brute-force searches is unmistakable.) The good news is that if we can finger the cause of the brute-force searches, we should be able to reduce all those numbers down to respectable levels; my guess is totaling not more than 5%. -George On Thu, Sep 11, 2008 at 6:25 PM, Gianluca Guida wrote: > Todd Deshane wrote: >> >> Can you also run kernbench on native for comparison? > > Here tehy are, with a two CPUs dom0. > > Thu Sep 11 13:03:57 EDT 2008 > 2.6.18.8-xen > Average Optimal load -j 8 Run (std deviation): > Elapsed Time 181.51 (0.550318) > User Time 300.494 (0.965572) > System Time 54.198 (0.784391) > Percent CPU 195 (0.707107) > Context Switches 26611.8 (205.029) > Sleeps 29778.8 (330.637) > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >