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

Re: [Xen-users] Disk performance under Xen

To: Gavin Conway <gavin.conway@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Disk performance under Xen
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Fri, 31 Jul 2009 13:44:51 +0300
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 31 Jul 2009 03:45:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <F547661C26C5364D9FA0C481D395CCCE259603D11F@xxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <F547661C26C5364D9FA0C481D395CCCE259603D11F@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
On Fri, Jul 31, 2009 at 11:32:53AM +0100, Gavin Conway wrote:
> Hi All,
> 
> We're seeing some really poor disk performance under Xen Source. 
> Below are the output of some Bonnie++ tests ran on the underlying host 
> as well as on a HVM instance. We've seen the same level of performance 
> on Debian Etch and Debian Lenny. Can anyone comment on what we might do 
> to improve this and get near-native performance from a HVM machine.
> 

Why do you need HVM guest? HVM, aka fully virtualized guests use Qemu 
to _emulate_ IDE (or SCSI) adapters and disks, so that'll be slow.

If you can't switch to paravirtual (PV) guests, at least try to install
PV-on-HVM drivers, which should help a lot. Other possibility is to use
stubdoms with HVM, but that's not available in Xen shipped in CentOS 5.3.
Stubdoms can be found from Xen 3.4.x

PV guests will be a lot faster, since there's no need for emulation. 
I recommend you to run PV guests.

-- Pasi

> 
> 
> Host - Running Centos 5.3
> 
> Version  1.03       ------Sequential Output------ --Sequential Input- 
> --Random-
>                     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- 
> --Seeks--
> Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec 
> %CP
> tig-xen-host-1. 14G           212037  38 115111  19           300545  12 779.4
> 
> Write: 207MB/s
> Rewrite: 112MB/s
> Read: 293.5MB/s
> 
> 
> Guest host - running Centos 5.3
> 
> Version  1.03       ------Sequential Output------ --Sequential Input- 
> --Random-
>                     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- 
> --Seeks--
> Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec 
> %CP
> localhost.locald 2G           29566   4 21399   5           88812   9 497.7   
> 6
> localhost.localdomain,2G,,,29566,4,21399,5,,,88812,9,497.7,6,,,,,,,,,,,,,
> 
> Write speed: 28.87MB/s
> Rewrite speed: 20.89MB/s
> Read: 86.73MB/s
> 
> 
> Thanks
> Gavin
> 
> 
> Gavin Conway
> Senior Engineer, Operations (Systems Group), UKSolutions
> 
> Telephone: 0845 004 1333, option 2
> Email: gavin.conway@xxxxxxxxxxxxxxxxx
> Web: http://www.uksolutions.co.uk/
> UKS Ltd, Birmingham Road, Studley, Warwickshire, B80 7BG Registered in 
> England Number 3036806
> This email must be read in conjunction with the legal & service notices on 
> http://www.uksolutions.co.uk/disclaimer
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>