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] Poor disk io performance in domUs

To: "Andrej Radonic" <rado@xxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Poor disk io performance in domUs
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Fri, 22 Jun 2007 11:16:51 +0200
Delivery-date: Fri, 22 Jun 2007 02:15:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <467B80E1.10009@xxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ace0ox+6oTG9mP4rSrWEuICgpIKzLAACpZGw
Thread-topic: [Xen-users] Poor disk io performance in domUs
 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Andrej Radonic
> Sent: 22 June 2007 08:57
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] Poor disk io performance in domUs
> 
> Tom,
> 
> > Are the disk I/O numbers quoted below aggregate for all 
> machines, or  
> > just for the mailserver.
> 
> so far we measured separately in dom0 and in the mail-domU.
> The 20 MB/s happen as soon as there is concurrent io from two 
> or more domUs.

That would be a consequence of the two domains causing more
head-movement on the drive(s) than a single domain, so you get more
overhead. So if you get 50MB/s in a single domain, you don't get 25MB/s
in two parallel domains - you get a bit less. That's just what I'd
expect in this situation. [This is because the "disk" for each virtual
machine is in a different part of the disk, so each time the first
domain acesses the disk, it needs a (big) move of the read/write head,
and then another big move when the second domain accesses it's part of
the disk]. 

--
Mats
> 
> Andrej
> 
> > -- -- Tom Mornini, CTO -- Engine Yard, Ruby on Rails 
> Hosting -- Support, Scalability, Reliability -- (866) 
> 518-YARD (9273) On Jun 20, 2007, at 10:49 PM, Andrej Radonic wrote:
> >> > Hi,
> >> >
> >> > in a previously well behaving xen setup we are suddenly  
> >> > experiencing massive loss of disk performance.
> >> >
> >> > Setup: two identical machines (dell, 2 quadcore cpus 
> each, 8 GB RAM  
> >> > each), attached to *one* SAS storagebox (Raid5 SAS 
> disks), CentOS  
> >> > 5, Xen 3.04 running three domUs each.
> >> > Storage partitions are exposed as block-devices to the guests.  
> >> > Filesystem is ext3.
> >> >
> >> > Since a domU running a rather heavily loaded mailserver 
> (many small  
> >> > files, many reads/writes) has been added, io performance has  
> >> > deteriorated significantly.
> >> >
> >> > In dom0 about 100 MB/s can be achieved, in domU only 
> about 50 MB/s.  
> >> > This looks even worse when there are massive concurrent 
> / parallel  
> >> > io jobs, then throughput goes down to 20 MB/s.
> >> >
> >> > During all this the cpus are mostly idle...
> >> >
> >> > Any ideas? I know some performance degradation is to be 
> expected  
> >> > but shurely not on this scale?
> >> > Thanks,
> >> > Andrej
> >> >
> >> >
> >> > _______________________________________________
> >> > Xen-users mailing list
> >> > Xen-users@xxxxxxxxxxxxxxxxxxx
> >> > http://lists.xensource.com/xen-users
> 
> 
> 
> interSales AG Internet Commerce
> Andrej Radonic
> Vorstand
> 
> _______________________________________________
> 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