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] SMP enabled Dom0 or not?

To: "'Mark Williamson'" <mark.williamson@xxxxxxxxxxxx>
Subject: RE: [Xen-users] SMP enabled Dom0 or not?
From: "Venefax" <venefax@xxxxxxxxx>
Date: Thu, 19 Jun 2008 11:43:51 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 19 Jun 2008 08:44:40 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=ggKeyjkGnKMW0FjfsGcWShYs7Qg9JFCM4zOVzg5BtH8=; b=nIjz5R5/z+NpmpOpw84+Or/hfn0M70R2g53k4KjXUcad57FUf6MPd7yrAxEdU3T9vC h+VLVfvizDeOqtEA+Y4eVy6dZB6vzovWu0HVK9k19kFBNdrG+FYIHRcH4Sv+t8Po1tEx cDKzAYE7r9tkFiikPg+kHQ224KV/hs8hMfxs0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=GxVB0JbtSsww/z6m9irvwRkjZ3KLoMw5XK0A9Lvee0MXS7Kt93pN09Orj1CQymNfKS eoWHiMnwvjYxQ3G33XJmx6/cIHXIl3FKjc+xavQ7Dy4tj88ioHP00ZyYc5LRhXQDpgb6 +Z9HaaZYGVVscAFS/mVQr8Ilj+KtZBqgklJKs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200806191457.10515.mark.williamson@xxxxxxxxxxxx>
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: <485453E7.5030605@xxxxxxxxx> <200806182306.45145.mark.williamson@xxxxxxxxxxxx> <00a701c8d192$51274e60$f375eb20$@com> <200806191457.10515.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjSFGXZBirSwrr/RRWjGptYecLzrgADqgfQ
Dear Mark
The million dollar question: how? Where is the documentation that can help
me do that? I mean, tie-up one core Dom0 and simultaneously remove that core
from the other DumUs


-----Original Message-----
From: M.A. Williamson [mailto:maw48@xxxxxxxxxxxxxxxx] On Behalf Of Mark
Williamson
Sent: Thursday, June 19, 2008 9:57 AM
To: Venefax
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] SMP enabled Dom0 or not?

> Question:
> How can I dedicate one CPU for Dom0 only and also how can I remove that
CPU
> so it is not available to the other VM's? Is there a configuration file
> somewhere? I need top network IO performance for my VM's, since each one
is
> a VOIP softswitch.
>
>

You need to do this manually by setting the other domUs config files (or 
issuing xm commands at runtime) so that they do not run on the CPU that dom0

is running on.

Cheers,
Mark

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mark
Williamson
> Sent: Wednesday, June 18, 2008 6:07 PM
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Cc: deshantm@xxxxxxxxx; Stefan de Konink
> Subject: Re: [Xen-users] SMP enabled Dom0 or not?
>
> > >     I wonder if the performance of a Xen machine can be increased by
> > >     disabling SMP in the Linux kernel by default, basically having one
> > >     of the 8 processors tied to dom0.
>
> Devoting a (logical) processor to dom0 can improve IO performance for
> guests,
> it's true.  Note that even just dedicating a hyperthread (if you have
them)
> can improve things.
>
> > >     In my scenario I use NFS or iSCSI as file backend. Looking at NFS
> > >     there will be a lot of tapdrives, while in the iSCSI scenario
there
> > >     is fewer overhead in userspace processes.
> > >
> > >     Could anyone give me a hint on the performance increase or
decrease
> > >     using SMP vs Uniprocessor?
>
> FYI, XenLinux will automatically optimise itself for UP or SMP operation
> without you having to recompile.  The spinlock operations are patched out
> if
>
> the kernel is booted in UP, or patched in for SMP.  Whatsmore, I think
this
> is even done at runtime, so a kernel can SMP-ify or de-SMP-ify itself on
> the
>
> fly (!).  I think this might have gone into mainline Linux a while back,
> actually.
>
> I wouldn't be surprised if it's actually not possible to run a pure UP
dom0
> on
> an SMP system but I don't know for sure.
>
> > > In the original "Xen and the Art of Virtualization" they actually
> > > disabled SMP and had better IO performance. I don't know if this is
> > > still true.
> > >
> > > Take a look at:
> > > http://research.microsoft.com/~tharris/papers/2003-sosp.pdf
> > > www.clarkson.edu/class/cs644/xen/files/repeatedxen-usenix04.pdf
> > >
<http://www.clarkson.edu/class/cs644/xen/files/repeatedxen-usenix04.pdf
> > >>
> >
> > Now I guess in 2003 there was no concept like tapdisk yet. I'll see if I
> > can get a clean benchmark. Of 32 VMs doing the same task, SMP vs
non-SMP.
>
> Back then dom0 didn't even handle IO for the domains, it was all done in
> Xen ;-)  Things have moved on quite a long way since then!
>
> Worth noting that if the processes in dom0 are just doing IO then they'll
> be
>
> blocked most of the time, so the performance may depend less on the number
> of
> CPUs available to dom0 and more on the regularity of scheduling (i.e.
> deploying a dom0 with dedicated PCPUs is probably the ultimate here).
>
> Cheers,
> Mark



-- 
Push Me Pull You - Distributed SCM tool
(http://www.cl.cam.ac.uk/~maw48/pmpu/)


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