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] streaming server on a virtual machine.

To: Brian Krusic <brian@xxxxxxxxxx>
Subject: Re: [Xen-users] streaming server on a virtual machine.
From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Date: Sun, 27 Sep 2009 07:42:44 -0700
Cc: Jeff Sturm <jeff.sturm@xxxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>, Mauro <mrsanna1@xxxxxxxxx>
Delivery-date: Sun, 27 Sep 2009 07:43:43 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=HB84/S+FV849uAsbJxD8PT/+Q2MbayVBDhwWyzu8bqc=; b=YwVG4eVTVm7KFaopnwLZefO7VW87qadUx41HwLSJOgUc9iKwesrYhdv+brIpufZXXv kdqUll8Xk2sKbaejy4N/L3oVN6fNmulF7h/5ENd4zduUKW2idRsgZ4GdCYtrXo9gVrT2 FlyT4u3ufJanpcV3kGz3aCWZwOwbhJeQg6gec=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=rW1V+D0OrJC/X0ctw9uevQnAJ7rXbLTeIv1zZZN26ghTYmNmFP+/d39H0XL4fEIEbh YEpSsQMjR4xMOPox6dxgUFFxSvbyGb0Lt9ccGQUwuknvwsNNlwp70sWohL81iKSWJtOk 8WH48YIYM7ynurzY9YU04aoFeoOEBCXMdP32A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <684AEB5D-3EAE-4643-95C1-CC1C5385EC6C@xxxxxxxxxx>
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: <ab520d140909180307g31d6c768i8a749509a066354b@xxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F03F3EA79@xxxxxxxxxxxxxxxxx> <ab520d140909260242n1e50914cvba5bc5bc0e510701@xxxxxxxxxxxxxx> <ed123fa30909260705m550ea320o2f721d129e13cdca@xxxxxxxxxxxxxx> <684AEB5D-3EAE-4643-95C1-CC1C5385EC6C@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Sep 26, 2009 at 9:48 AM, Brian Krusic <brian@xxxxxxxxxx> wrote:
Hi Grant,

I'm curious about your tests; LVM vs non LVM for the domU.

Was your domU image based (sparse or no sparse) and using an LVM inside or did you set up your domU to have direct disk access?

Was your dom0 LVM based as well?

What non LVM fs were you using, ext2, ext3, XFS?

- Brian


The DomU for the disk-file test was a non-sparse image file set up as a drive with straight partitions inside like this 'tap:aio:/srv/xen/webserver.img,xvdb,w',. The DomU for the LVM test had an LV in the Dom0 set up as a drive in the DomU like this 'phy:/dev/vgsys/lvweb,xvdb,w'

As you probably know that you'd never use a sparse image file for anything performance related (at least until the hard drive was full!). Both were using ext3. All the variables were the same, same OS drive for both (non-sparse file disk image) and the Dom0 was the same. I just replaced the disk file "drive" with the LVM "drive" at the same mountpoint and re-ran the tests. I had to convince SELinux in both cases that the new location was OK for mysql to write to so an SELinux policy was created that allowed this. I'd always had apache running out of an LV but mysql was writing to the Disk File. After I ran these tests I'm moved mysql over to the LV as well.

I would say though that even though the performance between native and real is virtually nothing you still need to pay attention to the CPU utilization differences. Running the db in the VM is still consuming more CPU than if it were on a bare machine.

It's also worth noting that previously I was working on contract on a full suite testing of the various VT technologies and during those tests I documented disk speed tests between Disk files and LVM and to my surprise I found very little in the way of speed increases of LVM over Disk files (from parity to 10% max). This was not expected at all. I believet the speed increase with the LVM volume was due to fewer IOs needed. mysqlbench is very tough on IOs.

Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>