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: burke@xxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] How-To pin Dom0 to CPU
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Mon, 23 Apr 2007 11:23:42 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 Apr 2007 02:22:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3406.75.52.153.213.1177168031.squirrel@xxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceEJsZTVTxqsUU9SseqZgbTWsJ0uQBYitPw
Thread-topic: [Xen-users] How-To pin Dom0 to CPU
 

> -----Original Message-----
> From: Ryan Burke [mailto:burke@xxxxxxxxxxxxxxxxx] 
> Sent: 21 April 2007 16:07
> To: Petersson, Mats
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-users] How-To pin Dom0 to CPU
> 
> >
> >
> >> -----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).

"xm vcpu-list" will list which vcpu is running on which pcpu, as well as
listing the affinity (which PCPU's are "allowed"). 

--
Mats
> 
> Thanks,
> Ryan
> 
> 
> 



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

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