Phoronix Xen vs KVM vs Virtualbox benchmark with Ubuntu 11.10
Hello,
http://www.phoronix.com/scan.php?page=article&item=ubuntu_1110_xenkvm&num=1
Ubuntu 11.10 with Xen 4.1.1 and Linux 3.0.
Xen seems to be doing very poorly on that benchmark. If someone has time to repeat that benchmark it would be good..
Comparing the results to those from Stefano from XenSummit 2011 NA there has be something wrong.. the results at XenSummit were pretty much the opposite compared to those by Phoronix.
-- Pasi
Quoted 2 lines · Pasi Kärkkäinen
Hello,
Hi!
Quoted 4 lines
http://www.phoronix.com/scan.php?page=article&item=ubuntu_1110_xenkvm&num=1
Ubuntu 11.10 with Xen 4.1.1 and Linux 3.0.
I've read the article and was surprised.
Quoted 6 lines
Xen seems to be doing very poorly on that benchmark. If someone has time to repeat that benchmark it would be good..
Comparing the results to those from Stefano from XenSummit 2011 NA there has be something wrong.. the results at XenSummit were pretty much the opposite compared to those by Phoronix.
In that test, the KVM machine uses virtio disk and nic devices, while the Xen machine uses the qemu emulated devices. Could that be the cause for the poor performance?
Quoted 1 line
-- Pasi
Mark
Quoted 3 lines · Mark Dokter
In that test, the KVM machine uses virtio disk and nic devices, while the Xen machine uses the qemu emulated devices. Could that be the cause for the poor performance?
Very much so. Without using the PVHVM drivers in the Xen case this is very much an apples to oranges comparison.
Ian.
Pasi,
Have you asked yourself a question why Fedora and Ubuntu always patch and package Qemu-kvm-0.15(14)(13)(..).1.tar.gz , but not Qemu-0.15(14)(13)(..).1.tar.gz ? Just install a couple of src.rpms to take a look - what's inside.
Boris.
--- On Tue, 11/1/11, Mark Dokter <[email protected]> wrote:
From: Mark Dokter <[email protected]>
Subject: Re: [Xen-devel] Phoronix Xen vs KVM vs Virtualbox benchmark with Ubuntu 11.10
To: [email protected]
Date: Tuesday, November 1, 2011, 7:31 AM
Quoted 2 lines · Pasi Kärkkäinen
Hello,
Hi!
Quoted 4 lines
http://www.phoronix.com/scan.php?page=article&item=ubuntu_1110_xenkvm&num=1
Ubuntu 11.10 with Xen 4.1.1 and Linux 3.0.
I've read the article and was surprised.
Quoted 6 lines
Xen seems to be doing very poorly on that benchmark. If someone has time to repeat that benchmark it would be good..
Comparing the results to those from Stefano from XenSummit 2011 NA there has be something wrong.. the results at XenSummit were pretty much the opposite compared to those by Phoronix.
In that test, the KVM machine uses virtio disk and nic devices, while the Xen machine uses the qemu emulated devices. Could that be the cause for the poor performance?
Quoted 1 line
-- Pasi
Mark
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Ian Campbell
Quoted 3 lines · Mark Dokter
In that test, the KVM machine uses virtio disk and nic devices, while the Xen machine uses the qemu emulated devices. Could that be the cause for the poor performance?
Very much so. Without using the PVHVM drivers in the Xen case this is very much an apples to oranges comparison.
Actually the first page of the article says:
"The only Xen issue encountered when testing it with an Ubuntu 11.10 guest and host was the need for manually loading the xen-blkfront driver for disk support."
So it sounds like they actually did use PVHVM drivers..
-- Pasi
Quoted 7 lines · Boris Derzhavets
Pasi,
Have you asked yourself a question why Fedora and Ubuntu always patch and package
Qemu-kvm-0.15(14)(13)(..).1.tar.gz , but not Qemu-0.15(14)(13)(..).1.tar.gz ? Just install a couple of src.rpms to take a look - what's inside.
I assume that's because full kvm support hasn't be merged to upstream qemu so they need to ship separate qemu-kvm package.
-- Pasi
Quoted 56 lines
--- On Tue, 11/1/11, Mark Dokter <[email protected]> wrote:
From: Mark Dokter <[email protected]>
Subject: Re: [Xen-devel] Phoronix Xen vs KVM vs Virtualbox benchmark with Ubuntu 11.10
To: [email protected]
Date: Tuesday, November 1, 2011, 7:31 AMQuoted 2 lines · Pasi Kärkkäinen
Hello,
Hi!
Quoted 1 line
[1]http://www.phoronix.com/scan.php?page=article&item=ubuntu_1110_xenkvm&num=1
Quoted 3 lines
Ubuntu 11.10 with Xen 4.1.1 and Linux 3.0.
I've read the article and was surprised.
Quoted 4 lines
Xen seems to be doing very poorly on that benchmark. If someone has time to repeat that benchmark it would be good..
Comparing the results to those from Stefano from XenSummit 2011 NA there has
be something wrong..
Quoted 1 line
the results at XenSummit were pretty much the opposite compared to those by
Phoronix.
Quoted 1 line
In that test, the KVM machine uses virtio disk and nic devices, while the Xen machine uses the qemu emulated devices. Could that be the cause for the poor performance?
Quoted 1 line
-- Pasi
Mark
_______________________________________________
Xen-devel mailing list
[2][email protected]
[3]http://lists.xensource.com/xen-develReferences
Visible links
1. http://www.phoronix.com/scan.php?page=article&item=ubuntu_1110_xenkvm&num=1
2. file:///mc/[email protected]
3. http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · --On 1 November 2011 15:26:39 +0200 Pasi Kärkkäinen <[email protected]> wrote:
Actually the first page of the article says:
"The only Xen issue encountered when testing it with an Ubuntu 11.10 guest and host was the need for manually loading the xen-blkfront driver for disk support."So it sounds like they actually did use PVHVM drivers..
Allegedly 11.10 supports Xen out the box. However, the installer does not ship with the PV drivers in, which causes the IDE driver to be unplugged and thus means the installer can't access its disk. It requires substantial fiddling to fix this. It thus wouldn't entirely surprise me if they weren't actually using PV drivers even if they thought they were.
An alternative explanation is that by default KVM uses write-through caching (i.e. read caching) on block devices on Ubuntu in dom0. I don't know what Xen uses by default on 4.1.1, but certainly this makes KVM outperforms Xen 3.3 (where there is no such caching) using naive testing on our platforms.
The article also does not say what the block devices were backended onto. As discussed ad nauseam here at the end of last week, distributions do not ship with blktap (certainly Ubuntu doesn't), so unless they are using blkback and partitions, it will use (if I remember this right) the Qemu drivers and be slow. Certainly my take away from the thread last week was that there was no chance of decent performance with a file backed block device (without loopback mount). I have to say, getting Xen 4.1 to work was non-trivial, even though we have working 3.1 configs. Getting kvm to work and work well was incredibly simple. So it's quite possible Phoronix stumbled into a non-optimal configuration.
Signature · 1 line
Alex Bligh
Quoted 10 lines · Pasi Kärkkäinen
Quoted 8 lines · Ian Campbell
Quoted 3 lines · Mark Dokter
In that test, the KVM machine uses virtio disk and nic devices, while the Xen machine uses the qemu emulated devices. Could that be the cause for the poor performance?
Very much so. Without using the PVHVM drivers in the Xen case this is very much an apples to oranges comparison.
Quoted 6 lines
Actually the first page of the article says:
"The only Xen issue encountered when testing it with an Ubuntu 11.10 guest and host was the need for manually loading the xen-blkfront driver for disk support."So it sounds like they actually did use PVHVM drivers..
Perhaps, the table of configuration details doesn't make it particularly obvious (and as Alex points out they may not have been running what they thought). Also as Alex mentioned it's not obvious which backend they used in each case, e.g. the qemu based disk backend is not known to be all that great.
It'd definitely be worth someone having a go at repeating even one of the benchmarks where we did badly, to rule out these sorts of slip ups.
Ian.
Quoted 3 lines
-- Pasi