From: "Todd Deshane" Subject: Re: Re: Poor performance on HVM (kernbench) Date: Thu, 11 Sep 2008 15:04:03 -0400 Message-ID: <1e16a9ed0809111204m69efc406keddf41312b74f07d@mail.gmail.com> 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> <48C962D8.5030102@eu.citrix.com> Reply-To: deshantm@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48C962D8.5030102@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 , George Dunlap , xen-devel mailing list , Anthony Liguori List-Id: xen-devel@lists.xenproject.org On Thu, Sep 11, 2008 at 2:26 PM, Gianluca Guida wrote: > George Dunlap wrote: >> >> 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. > > Fantastic (well, sort of)! > > If I understand it correctly, Todd is using PV drivers in Linux HVM guests, > so the reason for brute-force search is due to former L1 page-tables being > used as I/O pages, not being unshadowed because they can get writable > mappings out of it. > It is, shortly, an unshadowing problem. Should be `easy` to fix. I wasn't > using PV drivers, so I was not experiencing this behaviour. > > Or, it could be a fixup table bug, but I doubt it. > > George, did you saw excessive fixup faults in the trace? > > Todd, could you try without PV drivers (plain qemu emulation) and see if the > results get better? To the best of my knowledge, I am not using PV on HVM drivers since they are not upstream. I am using 2.6.27-rc4 xen domU kernel, with the normal xen PV drivers and KVM virtio built in. Am I mistaken? I am running the test with shadow3 disabled now. I'll report the results when they come out. Any other suggestions or things for me to try, let me know. Cheers, Todd