Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Xen Performance Teaser
PostPosted: Mon Mar 27, 2006 4:52 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
UML:
Code:
$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2
$ tar xfj linux-2.6.16.tar.bz2
$ cd linux-2.6.16
$ make defconfig
$ time make -j2 # (Single processor UML)
...
real    15m36.277s
user    11m4.890s
sys     4m22.970s


Xen:
Code:
$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2
$ tar xfj linux-2.6.16.tar.bz2
$ cd linux-2.6.16
$ make defconfig
$ time make -j6 # (SMP Linode)
...
real    3m8.766s
user    8m27.320s
sys     1m15.980s


So basically a Xenode can compile a kernel in 3 minutes whereas UML takes about 15. Granted, the Xen host is faster, but even adding a penalty of say, 30%, that still is only a 4 minute kernel compile on Xen.

Not bad, eh?

-Chris


Top
   
PostPosted: Mon Mar 27, 2006 7:38 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
caker wrote:
UML:
Code:
$ time make -j2 # (Single processor UML)


Xen:
Code:
$ time make -j6 # (SMP Linode)



It's certainly an impressive result, but the tests were not the same.
Can we see the result with -j2 on both machines?


Top
   
PostPosted: Mon Mar 27, 2006 9:39 am 
Offline
Junior Member

Joined: Thu Oct 07, 2004 6:47 pm
Posts: 47
sednet wrote:
It's certainly an impressive result, but the tests were not the same.
Can we see the result with -j2 on both machines?


Best would be -j1 on both as it seems the Xen linode could allocate more than one VCPU (ie run on multiple CPUs). -j1 would suppress much of the SMP versus UP advantage.


Top
   
 Post subject:
PostPosted: Mon Mar 27, 2006 1:20 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
UML
Code:
# make distclean; make defconfig; time make -j1
..
real    17m29.744s
user    11m53.640s
sys     4m54.100s


Xen
Code:
# make distclean; make defconfig; time make -j1
..
real    5m40.046s
user    4m45.270s
sys     0m38.640s


-Chris


Top
   
 Post subject:
PostPosted: Mon Mar 27, 2006 2:35 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Impressive!

Would it be difficult to run that same test on an OS running on the metal? Might be interesting just for comparison.

Can't wait for Xen to be available for everybody!


Top
   
 Post subject:
PostPosted: Mon Mar 27, 2006 4:01 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Xan wrote:
Would it be difficult to run that same test on an OS running on the metal? Might be interesting just for comparison.


Same machine, booted into:
Linux host56.linode.com 2.6.15-1-k7-smp #2 SMP Mon Mar 6 15:50:26 UTC 2006 i686 GNU/Linux

Code:
make -j1
real    4m43.388s
user    4m27.114s
sys     0m21.094s

make -j2
real    2m27.666s
user    4m28.531s
sys     0m20.854s

make -j6
real    2m27.219s
user    4m29.766s
sys     0m21.260s

-Chris


Top
   
 Post subject:
PostPosted: Mon Mar 27, 2006 4:08 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
So, by my calculations, you lose 73% of your performance with UML, but only take a 17% hit with Xen. Dang!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group