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-devel

Re: [Xen-devel] Unable to set dom0 vcpu to 1

Subject: Re: [Xen-devel] Unable to set dom0 vcpu to 1
From: "Pablo Montesinos" <pablomontesinos@xxxxxxxxx>
Date: Mon, 12 Jun 2006 12:06:02 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, "McAfee, Tommie M" <Tommie.McAfee@xxxxxxxxxx>, "Krysan, Susan" <KRYSANS@xxxxxxxxxx>, "Puthiyaparambil, Aravindh" <aravindh.puthiyaparambil@xxxxxxxxxx>, "Subrahmanian, Raj" <raj.subrahmanian@xxxxxxxxxx>, "Vessey, Bruce A" <Bruce.Vessey@xxxxxxxxxx>, "Carb, Brian A" <Brian.Carb@xxxxxxxxxx>
Delivery-date: Mon, 12 Jun 2006 12:06:28 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sjl3OCyvTOd2/2zb06Cw702OLiuIGxnY7Fua00it6tOLH4JKslwBFMNUnBL/mzk4zMxI+m7+l6gi4f777rlEf1WHgZimJZ8G8852CMISeNN7WrcExrNOLkkyQVywjMvhyqiq0U6ZN6p+pEQeizg2reG5QZzbaC1GuZoqEP118X8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <B5677069E3D9994D9EE1C7295072EA960A525EE6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <B5677069E3D9994D9EE1C7295072EA960A525EE6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Actually, in our machine, no matter what I write in
/etc/xen/xend-config.sxp, dom0 alaways uses the 32 cpus.

On 6/8/06, Apparao, Padmashree K <padmashree.k.apparao@xxxxxxxxx> wrote:




I think it should too, but I ended up doing this to achieve what I needed.
( only 1 vcpu for dom0)



-          Padma

-



 ________________________________


From: Subrahmanian, Raj [mailto:raj.subrahmanian@xxxxxxxxxx]
 Sent: Thursday, June 08, 2006 2:16 PM
 To: Apparao, Padmashree K; Carb, Brian A; xen-devel@xxxxxxxxxxxxxxxxxxx
 Cc: McAfee, Tommie M; Krysan, Susan; Puthiyaparambil, Aravindh; Vessey,
Bruce A

 Subject: RE: [Xen-devel] Unable to set dom0 vcpu to 1







Padma,

Shouldn't the xm vcpu-set work regardless of the dom0-cpus value?

Raj


 ________________________________


From: Apparao, Padmashree K [mailto:padmashree.k.apparao@xxxxxxxxx]
 Sent: Thursday, June 08, 2006 5:03 PM
 To: Carb, Brian A; xen-devel@xxxxxxxxxxxxxxxxxxx
 Cc: McAfee, Tommie M; Krysan, Susan; Puthiyaparambil, Aravindh;
Subrahmanian, Raj; Vessey, Bruce A
 Subject: RE: [Xen-devel] Unable to set dom0 vcpu to 1

Set (dom-cpus=1) in  etc/xen/xend-config.sxp.



-          Padma

-





 ________________________________


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Carb, Brian A
 Sent: Thursday, June 08, 2006 1:12 PM
 To: xen-devel@xxxxxxxxxxxxxxxxxxx
 Cc: McAfee, Tommie M; Krysan,Susan; Puthiyaparambil,Aravindh;
Subrahmanian,Raj; Vessey,Bruce A; Carb, Brian A
 Subject: [Xen-devel] Unable to set dom0 vcpu to 1



Running xen-unstable changeset 10269 on a Unisys ES7000/one, x86_64, 16
procs, 16 GB RAM under SLES 10 RC1.

At startup, dom0-cpus is set to 0 (the default) in the xend-config.sxp file,
and dom0 uses all 16 cpus. 'xm top' shows 16 procs, 'xm list' shows dom0
using 16 cpus, and 'xm vcpu-list' shows 16 cpus assigned to dom0.

When we try to reduce the procs for dom0 to 1 using 'xm vcpu-set 0 1', the
number of procs, as shown by /proc/cpuinfo, reduces to 9. 'xm list' shows
dom0 using 9 procs, and 'xm vcpu-list' shows that procs 1-7 have been
released, while procs 0 and 8 through 15 are still assigned. Nothing is
shown on the serial port.

Can anyone shed some light on why the rest of the procs might not be
released? Thanks.

The following is output from 'xm list' and 'xm vcpu-list':

m0075:~ # xm list
 Name                              ID Mem(MiB) VCPUs State
Time(s)
 Domain-0                           0    15912    16 r-----
  849.3
 m0075:~ # xm vcpu-list
 Name                              ID  VCPU  CPU  State
Time(s)  CPU Affinity
 Domain-0                           0     0    0   -b-
438.1  any cpu
 Domain-0                           0     1    1   -b-
 4.0  any cpu
 Domain-0                           0     2    2   -b-
 5.4  any cpu
 Domain-0                           0     3    3   -b-
 4.5  any cpu
 Domain-0                           0     4    4   -b-
 8.4  any cpu
 Domain-0                           0     5    5   -b-
 6.1  any cpu
 Domain-0                           0     6    6   -b-
 5.0  any cpu
 Domain-0                           0     7    7   -b-
 4.5  any cpu
 Domain-0                           0     8    8   -b-
30.3  any cpu
 Domain-0                           0     9    9   -b-
14.6  any cpu
 Domain-0                           0    10   10   r--
29.1  any cpu
 Domain-0                           0    11   11   -b-
15.1  any cpu
 Domain-0                           0    12   12   -b-
71.6  any cpu
 Domain-0                           0    13   13   -b-
177.0  any cpu
 Domain-0                           0    14   14   -b-
14.5  any cpu
 Domain-0                           0    15   15   -b-
21.9  any cpu

m0075:~ # xm vcpu-set 0 1
 m0075:~ # xm list
 Name                              ID Mem(MiB) VCPUs State
Time(s)
 Domain-0                           0    15912     9 r-----
  853.2
 m0075:~ # xm vcpu-list
 Name                              ID  VCPU  CPU  State
Time(s)  CPU Affinity
 Domain-0                           0     0    0   -b-
439.3  any cpu
 Domain-0                           0     1    -   --p
 4.0  any cpu
 Domain-0                           0     2    -   --p
 5.6  any cpu
 Domain-0                           0     3    -   --p
 4.5  any cpu
 Domain-0                           0     4    -   --p
 8.4  any cpu
 Domain-0                           0     5    -   --p
 6.1  any cpu
 Domain-0                           0     6    -   --p
 5.0  any cpu
 Domain-0                           0     7    -   --p
 4.5  any cpu
 Domain-0                           0     8    8   -b-
30.3  any cpu
 Domain-0                           0     9    9   -b-
15.0  any cpu
 Domain-0                           0    10   10   r--
29.3  any cpu
 Domain-0                           0    11   11   -b-
15.2  any cpu
 Domain-0                           0    12   12   -b-
72.7  any cpu
 Domain-0                           0    13   13   -b-
177.5  any cpu
 Domain-0                           0    14   14   -b-
14.5  any cpu
 Domain-0                           0    15   15   -b-
22.0  any cpu

brian carb
 unisys corporation - malvern, pa
 brian.carb@xxxxxxxxxx

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




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