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] pincpu in 3.0

To: Alan Greenspan <alan@xxxxxxxxxxx>
Subject: Re: [Xen-users] pincpu in 3.0
From: Ryan Harper <ryanh@xxxxxxxxxx>
Date: Thu, 28 Jul 2005 15:53:56 -0500
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 29 Jul 2005 08:52:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
User-agent: Mutt/1.5.6+20040907i
pincpu for multiple vcpu domains is present.  

root@bebop:~ # xm help pincpu
pincpu DOM VCPU CPUS

Set which cpus VCPU in domain DOM can use.


You can only specify one VCPU at a time, but the CPUS value can either
be a single CPU, or it can be a range: 

xm pincpu 4 2 0-2,7,9-12

The CPU range is converted into a bitmap which indicates which physical
cpus a VCPU can run upon.  The current implementation only picks the
first CPU in the list and pins the VCPU there.  Some more examples below:

root@bebop:~ # xm list -v 4
Name              Id  VCPU  CPU  CPUMAP
debian_sarge_3     4     0    1  0xf
debian_sarge_3     4     1    0  0xf
debian_sarge_3     4     2    1  0xf
debian_sarge_3     4     3    0  0xf
root@bebop:~ # xm pincpu 4 2 0
root@bebop:~ # xm list 4
Name              Id  Mem(MB)  CPU VCPU(s)  State  Time(s)  Console
debian_sarge_3     4      128    1      4   -b---      9.8     9604
root@bebop:~ # xm list -v 4
Name              Id  VCPU  CPU  CPUMAP
debian_sarge_3     4     0    1  0xf
debian_sarge_3     4     1    0  0xf
debian_sarge_3     4     2    0  0x1
debian_sarge_3     4     3    0  0xf

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@xxxxxxxxxx

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

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