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] How-To pin Dom0 to CPU

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: RE: [Xen-users] How-To pin Dom0 to CPU
From: "Ryan Burke" <burke@xxxxxxxxxxxxxxxxx>
Date: Sat, 21 Apr 2007 10:07:11 -0500 (CDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 21 Apr 2007 08:05:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <907625E08839C4409CE5768403633E0B018E1C1C@xxxxxxxxxxxxxxxxx>
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: <907625E08839C4409CE5768403633E0B018E1C1C@xxxxxxxxxxxxxxxxx>
Reply-to: burke@xxxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.8
>
>
>> -----Original Message-----
>> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ryan Burke
>> Sent: 18 April 2007 20:28
>> To: xen-users@xxxxxxxxxxxxxxxxxxx
>> Subject: [Xen-users] How-To pin Dom0 to CPU
>>
>> I've looked online and searched through alot of the archives
>> but I haven't
>> found a good explanation with the associated commands to pin
>> Dom0 (or a
>> DomU) to a certain cpu. I would like Dom0 to be pinned to CPU0 core0
>> (2xdual-core opterons) and then let all the other DomU's only
>> have 1 CPU
>> but they can use any of the other 3 cores left open. Dom0
>> will have its
>> own core.
>>
>> Can someone give me some examples on how I would do that?
>
> You can do this by setting (com0-cpus n), where n is the number of CPU's
> you want to use. It picks from the low to high numbers, so you if you
> set it to 1, it will pick CPU0, if you set it to 3, it will pick CPU0,
> CPU1, CPU2, and so on. This is done in /etc/xen/xend-config.sxp.
>
> You'll then have to set CPUS=... in config file for the guest, e.g.
> cpus="1-3" or cpus="1". You can also use regular expression inversion:
> cpus="^0-1", which means "any but 0 and 1".
>
>
>>
>> I appreciate the help with this problem.
>>
>> Ryan

How can you tell if a DomU is bound to a certain CPU? I added cpus="^0" in
its config and restarted the DomU but I only see it listed as VCPU 0, I
don't see where it states that this DomU's VCPU is attached to CPU 1 (only
a 2 processor single core system).

Thanks,
Ryan

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

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