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/
Home Products Support Community News


Re: [Xen-users] streaming server on a virtual machine.

To: Mauro <mrsanna1@xxxxxxxxx>
Subject: Re: [Xen-users] streaming server on a virtual machine.
From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Date: Sat, 26 Sep 2009 07:05:41 -0700
Cc: Jeff Sturm <jeff.sturm@xxxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 26 Sep 2009 07:06:46 -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=6oMoQXQlpZRdaorjvbKFwAukrRzHuLw9vuSVflRZQ1w=; b=KecZ/DNAP2wXllq9oV8nj5yxBW32Q8inj5LunV+L/BbsMmPk7HCJNnTLbaANz3tGNd mn7GA52lCLPaBwj6ao+8KezTx9Q/yNjYeRDUpXhIyKsGP0HSOTgzBfqEauWeuCFxuo2U KciLQ9+2IL0R+y73VDwvqQlUZWlKOEA80bZhA=
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=xaMcLDRbTYHDZnesApeBd7rj7edgybXqBzishJH6wSP7gyydhOVQQ1NwPIZrYa+7L2 374/hlTd8GvZmCtrClsRwxm8SyGZhtQ8zAGjgsqrNlWOg5oYO1nq8IqbVWmA85MI1L+M NOsZmha9OR3DDCJB8R27WYlc1Iff0xfjcAa50=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ab520d140909260242n1e50914cvba5bc5bc0e510701@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/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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

On Sat, Sep 26, 2009 at 2:42 AM, Mauro <mrsanna1@xxxxxxxxx> wrote:
2009/9/18 Jeff Sturm <jeff.sturm@xxxxxxxxxx>:
> I don't see why not.  If you're concerned about latency you could always
> pin the server to a physical CPU.
> (Lately we've been doing a lot of physical-to-virtual migrations, and
> I've found myself asking: "What kinds of servers do we have that should
> never be virtual?"  There aren't many on that list.)
You say that a streaming server can be installed on a virtual machine.
I don't want to create any kind of disturb but I've asked the same
question to the KVM mailing list and they said that a streaming server
(I user red5), due to the high I/O traffic, it must absolutely not

That may be true on KVM, I don't know. Databases are usually the most brutal on VMs and I ran mysqlbench (all tests) on
KVM as well as on the same machine native. KVM was within 5% of the native test. I did the same thing
with Xen 3.4.0 and the performance was within 4% but when I moved my database storage to an LVM
LV on DomU used as a hard drive in DomU the difference fell to less than 1%. Yes, the very IO dependent
mysqlbench speed improved substatially when using LVM over disk files. The only real difference between
mysqlbench on the real server and then on Xen/LVM was 20% higher CPU utilization.

I will also add that if Xen has a bottleneck it's traffic between DomUs. Don't configure it in any way to have
one DomU servicing another DomU unless both have real  network cards attached to them. As strange as it
sounds I've clocked 3x speed improvement by sending the data out of the machine to a switch and back in
to another DomU as apposed to sending it straight across. There's something messed up in that but if you follow
this guideline you'll get wire speed out of your DomUs.

My advice, set up the streaming server and watch it. If it doesn't work migrate it to new hardware. What are you out?
The other note I'd add is that if your server is running at 100% utilization there's no benefit in Virtualizing it. You will
only know if it's worth it by doing it and watching.

Grant McWilliams

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>