Skip to contentSkip to conversation

Phoronix Xen vs KVM vs Virtualbox benchmark with Ubuntu 11.10

DISCUSSION Pasi Kärkkäinen 5 participants 8 messages Oct 31, 2011 – Nov 1, 2011

lore
Share & tools
lore
#1 lore raw
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

#2 lore raw
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.

#6 lore raw
In reply to Mark Dokter

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

#3 lore raw
In reply to Ian Campbell
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

#7 lore raw
In reply to Boris Derzhavets
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 AM

Quoted 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-devel

References

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

#4 lore raw
In reply to Pasi Kärkkäinen
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
#5 lore raw
In reply to Pasi Kärkkäinen
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