WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: HVM Linux DomU with PV Drivers - Performance

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Re: HVM Linux DomU with PV Drivers - Performance
From: "Emre ERENOGLU" <erenoglu@xxxxxxxxx>
Date: Mon, 24 Mar 2008 03:15:08 +0100
Delivery-date: Sun, 23 Mar 2008 19:15:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=nmrXX11MIveiDirGGPRTmCT1H2VB83ngv9e2ShkK9Vk=; b=K+JG1EbsC/3nQ/dKHt/nkeMFZQR6Q/svG8R9TWpaGAvPe0ANrJUjW9tm0jKvVYe08h+COQo4xK0HqhJeIHsCs308IghuKhvAt3nfzottCAoTrDRe38MBiCqNf9HA3McVC9p8/ym4daH+BhUFmyA9lpN61f8zzhAP/2s/n8IZx30=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sKj6zLRU4cQ+V2/Ozbl3TYAJxulcAIM9bQ01gdb10eLyWOnA1mrZRMDpVzqCixCmrGEsulU7KV0yQQixFfhb+jqAEO7r4/EwIwDzQjgoNG5BS+Lz0isY6q5tgJyEu9LIUVwZoRM9XgMEWTUV+ZJI55Ysiy88d3UI4AR3hwZbXwc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fe9771a80803231835o6aeee5b6v60bf83cdcc822f3@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <fe9771a80803231835o6aeee5b6v60bf83cdcc822f3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi again, this time with disk benchmark.

I forgot to mention that this system is a Core2Duo E6300 1.83 Ghz running at 2.8 Ghz overclocked.

For the disk benchmark, I used Bonnie 1.4 (not bonnie++).

Machine: Pardus HVM DomU with PV drivers for root disk
Test Disk:  /dev/xvda1 --> a LVM volume in Dom0 on RAID stripe set (2 disks)
emre@voyager bonnie $ ./Bonnie -d /tmp -s 1500  -m Pardus
Bonnie 1.4: File '/tmp/Bonnie.4911', size: 1572864000, volumes: 1
Writing with putc()...         done:  74270 kB/s  87.8 %CPU
Rewriting...                   done:  43062 kB/s   4.9 %CPU
Writing intelligently...       done:  81596 kB/s  10.0 %CPU
Reading with getc()...         done:  51825 kB/s  68.4 %CPU
Reading intelligently...       done:  95262 kB/s   5.3 %CPU
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              ---Sequential Output (nosync)--- ---Sequential Input-- --Rnd Seek-
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --04k (03)-
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU   /sec %CPU
Pardus 1*1500 74270 87.8 81596 10.0 43062  4.9 51825 68.4 95262  5.3  221.2  0.1

Machine: Ubuntu - Dom0
Test Disk:  Same DomU disk, /dev/mapper/os-pardus but mounted on /mnt in Dom0 after DomU is shut down.

emre@xenroot:/tmp/bonnie$ ./Bonnie -d /mnt/tmp/ -s 1500 -m Ubuntu

Bonnie 1.4: File '/mnt/tmp//Bonnie.26707', size: 1572864000, volumes: 1
Writing with putc()...         done:  65001 kB/s  93.1 %CPU
Rewriting...                   done:  48770 kB/s   3.7 %CPU
Writing intelligently...       done: 158724 kB/s  27.1 %CPU
Reading with getc()...         done:  41054 kB/s  70.4 %CPU
Reading intelligently...       done: 107393 kB/s   3.4 %CPU
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              ---Sequential Output (nosync)--- ---Sequential Input-- --Rnd Seek-
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --04k (03)-
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU   /sec %CPU
Ubuntu 1*1500 65001 93.1158724 27.1 48770  3.7 41054 70.4107393  3.4  290.5  0.1


Machine: Ubuntu - Dom0
Test Disk:  /dev/mapper/os-data mounted on /d with a lot of free disk space
emre@xenroot:/tmp/bonnie$ ./Bonnie -d /d -s 1500 -m Ubuntu
Bonnie 1.4: File '/d/Bonnie.26712', size: 1572864000, volumes: 1
Writing with putc()...         done:  64011 kB/s  90.9 %CPU
Rewriting...                   done:  50202 kB/s   3.4 %CPU
Writing intelligently...       done: 183438 kB/s  28.2 %CPU
Reading with getc()...         done:  40139 kB/s  69.5 %CPU
Reading intelligently...       done: 111579 kB/s   3.9 %CPU
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              ---Sequential Output (nosync)--- ---Sequential Input-- --Rnd Seek-
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --04k (03)-
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU   /sec %CPU
Ubuntu 1*1500 64011 90.9183438 28.2 50202  3.4 40139 69.5111579  3.9  314.7  0.0

Machine: Ubuntu - Dom0
Test Disk:  Native partition, no RAID, /dev/sdb2 mounted on /mnt (lower results due to non-RAID)
emre@xenroot:/tmp/bonnie$ sudo ./Bonnie -d /mnt -s 1500 -m Ubuntu
Bonnie 1.4: File '/mnt/Bonnie.26738', size: 1572864000, volumes: 1
Writing with putc()...         done:  59680 kB/s  83.8 %CPU
Rewriting...                   done:  22911 kB/s   1.3 %CPU
Writing intelligently...       done: 108945 kB/s  16.0 %CPU
Reading with getc()...         done:  31999 kB/s  52.6 %CPU
Reading intelligently...       done:  51561 kB/s   0.9 %CPU
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              ---Sequential Output (nosync)--- ---Sequential Input-- --Rnd Seek-
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --04k (03)-
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU   /sec %CPU
Ubuntu 1*1500 59680 83.8108945 16.0 22911  1.3 31999 52.6 51561  0.9  283.6  0.1

Conclusion:
The HVM Linux DomU running with unmodified_drivers (PV drivers for HVM guest, xen-vbd) seems to perform as good as Dom0 itself for disk I/O.

Best regards,

Emre

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>