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] DomU slower with smp?

To: Nick Anderson <nick@xxxxxxxxxxxx>
Subject: Re: [Xen-users] DomU slower with smp?
From: Luke S Crawford <lsc@xxxxxxxxx>
Date: 15 May 2008 21:54:34 -0400
Cc: Janusz Ulanowski <janul666@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 May 2008 18:55:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <482CD931.6070709@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: <4cdb57b90805140435g58427e58w56848049ee027f9a@xxxxxxxxxxxxxx> <m3y76b5bhc.fsf@xxxxxxxxxxxxxxxxxx> <482CD931.6070709@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
Nick Anderson <nick@xxxxxxxxxxxx> writes:
> Its a dual socket quad core amd. So I have 8 cores. cpus for dom0 is
> set to 0 and according to xend-config.sxp that will give dom0 access
> to all cpus. I havent adjusted any weighting so im not sure what would
> be stepping on it. The only thing running during the test was that one
> domU. and the domU was idle when running the test on dom0.

here is what I'm talking about:
[root@coloma lsc]# xm vcpu-list 0
Name                              ID VCPUs   CPU State   Time(s) CPU Affinity
Domain-0                           0     0     0   -b-   33162.5 any cpu
Domain-0                           0     1     1   r--    6688.2 any cpu

if you notice, Dom0 has access to 2 CPUs, but most of the work is done on
the first CPU.  I/O, generally speaking, is not an operation that
threads well.  

[root@coloma lsc]# xm vcpu-list oggfrog
Name                              ID VCPUs   CPU State   Time(s) CPU Affinity
oggfrog                          124     0     0   -b-    2160.2 any cpu

one of the DomUs, oggfrog, is also on CPU 0... however, I've set the weights:

[root@coloma lsc]# xm sched-credit -d 0
{'cap': 0, 'weight': 4096}
[root@coloma lsc]# xm sched-credit -d oggfrog
{'cap': 0, 'weight': 256}

before I set the weights, IO was pretty bad.  This way is acceptable,
but it would probably be significantly faster if I gave a whole CPU to
the Dom0 (but that box only has 2 cores, so I'm sharing-  this gives my 
DomUs better CPU but worse IO performance.)  

the way to see if this is your problem is to execute the xm vcpu-list commands
while reproducing the problem in the SMP and Non-SMP DomU. 

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

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