Skip to contentSkip to conversation

Xen performance and Dbench

DISCUSSION Dan Magenheimer 3 participants 5 messages Aug 7, 2008

lore
Share & tools
lore
#0 lore raw

I saw the presentation "Virtualization of Linux Servers" at OLS last month and it had some nice comparisons of Xen performance vs a lot of other virtualization/container technologies:

http://ols.fedoraproject.org/OLS/Reprints-2008/camargos-reprint.pdf

As always with benchmarks, there are questions to ask and points to quibble, but overall Xen looks quite good... except on Dbench. Has anybody else run this benchmark on Xen and gotten better results? If not, any thoughts on why Xen (and all virt solutions) would do poorly on this benchmark? And whether Xen can/should be fixed?

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor The balloon is flat / My swap disk's fat / I've OOM's in store Overcommitted so much
(with apologies to the late great Bob Hope)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 7 lines · Dan Magenheimer

I saw the presentation "Virtualization of Linux Servers" at OLS last month and it had some nice comparisons of Xen performance vs a lot of other virtualization/container technologies:

http://ols.fedoraproject.org/OLS/Reprints-2008/camargos-reprint.pdf

Thanks for pointing this one out.

Quoted 7 lines

As always with benchmarks, there are questions to ask and points to quibble, but overall Xen looks quite good... except on Dbench. Has anybody else run this benchmark on Xen and gotten better results? If not, any thoughts on why Xen (and all virt solutions) would do poorly on this benchmark? And whether Xen can/should be fixed?

The original Xen paper [1] and our repeated research paper [2] showed a decent dbench "score" vs. native.

http://www.cl.cam.ac.uk/research/srg/netos/papers/2003-xensosp.pdf
http://web2.clarkson.edu/class/cs644/xen/files/repeatedxen-usenix04.pdf

dbench is known to have a high standard deviation...

some KVM results for dbench:
http://virt.kernelnewbies.org/KVM/Performance

dbench is an interesting test since it is basically an I/O test (Samba test)
http://samba.org/ftp/tridge/dbench/README

I don't know if dbench is the best test to determine if Xen (or other virts) need
to be fixed.

Cheers,
Todd

Quoted 12 lines

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor The balloon is flat / My swap disk's fat / I've OOM's in store Overcommitted so much
(with apologies to the late great Bob Hope)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 3 lines
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com
#2 lore raw
Quoted 2 lines · Todd Deshane

dbench is an interesting test since it is basically an I/O test (Samba test)
http://samba.org/ftp/tridge/dbench/README

dbench is actually *not* an I/O test. It mostly stresses a filesystems interaction with the page cache. It's heavily threaded and tends to scale okay but it's rarely impacted heavily by the underlying storage systems I/O performance. It tends to demonstrate shadow page table SMP scalability more than I/O performance.

The OLS paper referenced really had bad methodologies. If you read carefully, their host system was a 2-way system. They ran all of the guests UP though. Since they didn't do a parallel make, it wasn't very obvious for their "kernel build" but it became obvious with dbench since there were multiple threads.

So native and "VServer" had access to both CPU cores whereas Xen, KVM, et al were only running on a single core. There's no way dbench is 30% of native under Xen. That should have been a big red flag that something was wrong.

Regards,

Anthony Liguori

Quoted 23 lines

I don't know if dbench is the best test to determine if Xen (or other virts) need
to be fixed.

Cheers,
Todd

Quoted 12 lines

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor The balloon is flat / My swap disk's fat / I've OOM's in store Overcommitted so much
(with apologies to the late great Bob Hope)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

Thanks, Anthony, very illuminating. However one would expect that the 1-cpu measurement would be about one-half of the 2-cpu measurement, not closer to one-fourth (27%), true? So even if the methodology is bad, the results may still be indicating something wrong that should be looked at?

Todd, the references you provide are several years and several versions of Xen old. Have you seen any Xen dbench results on a more recent Xen version? While I agree that dbench might not be the best benchmark in the world, if some customers use and believe it (or, worse, believe the OLS paper), it would be nice to be able to set the record straight.

Quoted 66 lines

-----Original Message-----
From: Anthony Liguori [mailto:[email protected]]
Sent: Thursday, August 07, 2008 1:50 PM
To: [email protected]
Cc: [email protected]; Xen-Devel (E-mail)
Subject: Re: Xen performance and Dbench

Quoted 1 line · Todd Deshane

dbench is an interesting test since it is basically an I/O

test (Samba test)

Quoted 1 line

http://samba.org/ftp/tridge/dbench/README

dbench is actually *not* an I/O test. It mostly stresses a filesystems
interaction with the page cache. It's heavily threaded and tends to scale okay but it's rarely impacted heavily by the underlying storage systems I/O performance. It tends to demonstrate shadow page table SMP
scalability more than I/O performance.

The OLS paper referenced really had bad methodologies. If you read carefully, their host system was a 2-way system. They ran all of the guests UP though. Since they didn't do a parallel make, it wasn't very
obvious for their "kernel build" but it became obvious with dbench since
there were multiple threads.

So native and "VServer" had access to both CPU cores whereas Xen, KVM, et al were only running on a single core. There's no way dbench is 30%
of native under Xen. That should have been a big red flag that something was wrong.

Regards,

Anthony Liguori

Quoted 1 line

I don't know if dbench is the best test to determine if Xen

(or other

Quoted 22 lines

virts) need
to be fixed.

Cheers,
Todd

Quoted 12 lines

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor The balloon is flat / My swap disk's fat / I've OOM's in store Overcommitted so much
(with apologies to the late great Bob Hope)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw
Quoted 7 lines · Dan Magenheimer

Thanks, Anthony, very illuminating. However one would expect that the 1-cpu measurement would be about one-half of the 2-cpu measurement, not closer to one-fourth (27%), true? So even if the methodology is bad, the results may still be indicating something wrong that should be looked at?

Quoted 8 lines

Todd, the references you provide are several years and several versions of Xen old. Have you seen any Xen dbench results on a more recent Xen version? While I agree that dbench might not be the best benchmark in the world, if some customers use and believe it (or, worse, believe the OLS paper), it would be nice to be able to set the record straight.

I don't know of anything on dbench and Xen.

I don't think it would be too hard to try to re-run their Xen dbench numbers. We could then not make the mistakes that Anthony pointed out.

More investigation is definitely needed.

Cheers,
Todd