From: Daniel Magenheimer Subject: RE: Poor performance on HVM (kernbench) Date: Wed, 10 Sep 2008 14:37:30 -0700 (PDT) Message-ID: References: <1e16a9ed0809101123m71a12030v7d06501f6467f93@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1e16a9ed0809101123m71a12030v7d06501f6467f93@mail.gmail.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: deshantm@gmail.com, xen-devel mailing list List-Id: xen-devel@lists.xenproject.org This doesn't answer the HVM question but it appears that you are running guests with 1 vCPU but comparing against a dual-CPU native. True? > -----Original Message----- > From: Todd Deshane [mailto:deshantm@gmail.com] > Sent: Wednesday, September 10, 2008 12:23 PM > To: xen-devel mailing list > Subject: [Xen-devel] Poor performance on HVM (kernbench) >=20 >=20 > Hi All, >=20 > We are continuing our Xen vs. KVM benchmarking that I=20 > presented at Xen summit. >=20 > This time, we are focusing on newer versions and also planning to > include Xen HVM > and KVM with PV drivers results. As well as adding some more tests. >=20 > I have setup Xen 3.3 from source, and am using Linux 2.6.27-rc4 for > all the guests. >=20 > Below are some raw kernbench results, which clearly show that=20 > I have a problem > with Xen HVM. It may just be a configuration issue, but we have tried > all that we > could think of so far (i.e file:, instead of tap:aio). I have also > tried xen-unstable and > it doesn't seem to produce any better results. I am also in the > process of trying > kernbench on older versions of Xen HVM. >=20 > here is the xm command line > xm create /dev/null name=3Dbenchvm0 memory=3D2048 > kernel=3D"/usr/lib/xen/boot/hvmloader" builder=3D"hvm" > device_model=3D/usr/lib64/xen/bin/qemu-dm > disk=3Dfile:/root/benchvm/bin/img-perf_xen_hvm_test1/image-0.img,hda,w > vnc=3D1 vncdisplay=3D0 vif=3Dmac=3DAA:BB:CC:DD:EE:00,bridge=3Dbr0 > vif=3Dmac=3DAA:BB:CC:DD:EE:7b,bridge=3Dbr1 vncviewer=3D"yes" > on_poweroff=3Ddestroy on_reboot=3Drestart on_crash=3Dpreserve >=20 > I will also consider an IO test, such as iozone to see if > the disk IO problems are a cause. The dom0 cpu > doesn't seem to be under much load at all during the > kernbench run. >=20 > System time on the kernbench run is 1/2 of the time, so does > that suggest either disk IO or guest scheduling problem? >=20 > System time on the other cases is 1/4 or less on the other > cases. >=20 > If anybody has any ideas, suggestions, or can even run Xen=20 > HVM kernbench > vs. native on their setup to compare against that would be=20 > very helpful. >=20 > The system setup is a Intel core2 dual 4 GB of ram. > The HVM guest does run the libata driver similar to KVM with=20 > emulated drivers. >=20 > Thanks, > Todd >=20 > KVM PV drivers >=20 > Average Optimal load -j 4 Run (std deviation): > Elapsed Time 527.572 (0.681337) > User Time 404.3 (0.982141) > System Time 122.552 (0.468636) > Percent CPU 99 (0) > Context Switches 116020 (180.82) > Sleeps 31307 (94.2072) >=20 >=20 > KVM Emulated drivers >=20 > Average Optimal load -j 4 Run (std deviation): > Elapsed Time 527.968 (0.450744) > User Time 403.95 (0.342929) > System Time 122.134 (0.550709) > Percent CPU 99 (0) > Context Switches 115907 (214.3) > Sleeps 31302.4 (88.7175) >=20 > Xen PV >=20 > Average Optimal load -j 4 Run (std deviation): > Elapsed Time 446.876 (0.130115) > User Time 392.088 (0.339367) > System Time 54.76 (0.391088) > Percent CPU 99 (0) > Context Switches 64601.4 (163.314) > Sleeps 31214.8 (183.53) >=20 >=20 >=20 > Xen HVM >=20 > Average Optimal load -j 4 Run (std deviation): > Elapsed Time 2081.71 (34.0459) > User Time 617.36 (3.61771) > System Time 1430.36 (28.3309) > Percent CPU 98 (0) > Context Switches 331843 (5283.28) > Sleeps 37329.8 (91.538) >=20 >=20 > KVM Native (Linux) >=20 > Average Optimal load -j 8 Run (std deviation): > Elapsed Time 216.076 (0.121778) > User Time 381.122 (0.259557) > System Time 43.242 (0.278783) > Percent CPU 196 (0) > Context Switches 75483.2 (389.988) > Sleeps 38078.8 (354.267) >=20 >=20 > Xen native 2.6.18.8 dom0 kernel >=20 > Average Optimal load -j 8 Run (std deviation): > Elapsed Time 228.504 (0.0808084) > User Time 384.014 (0.657632) > System Time 64.028 (0.733669) > Percent CPU 195.8 (0.447214) > Context Switches 35270.4 (264.36) > Sleeps 39493.4 (266.222) >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >