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

[Xen-users] pinning CPU affinity

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] pinning CPU affinity
From: Micah Anderson <micah@xxxxxxxxxx>
Date: Mon, 14 Jun 2010 18:39:51 -0400
Cc:
Delivery-date: Mon, 14 Jun 2010 15:41:00 -0700
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Notmuch/0.3.1-17-g0d7c02d (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu)
I'm trying to figure out how I can pin the CPU affinity for individual
domU's in their configuration file.

I allocated 3 CPUs to a particular domU, and the CPU affinity is
floating between those three. I want to pin them to specific cores in
the config file. I can do it on bootup by doing vcpu-pin on the
command-line, but I want this to be set int he config file itself.

Right now I have:

vcpus=3
cpus=[0,1,2]

Which I understand gives the domain 3 VCPUs, pins the first VCPU to the
first physical CPU, pins the second to the second physical CPU and the
third to the third CPU. The output of vcpu-list shows that the VCPUs do
seem to be pinned to the physical CPUs as indicated, but the affinity
column is set to 0-2 for each of them, when I want it set specifically
to a single CPU:

root@finch:/etc/xen# xm vcpu-list
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
Domain-0                             0     0     3   -b-    2465.5 3
Domain-0                             0     1     1   -b-     218.2 3
Domain-0                             0     2     0   -b-     191.0 3
Domain-0                             0     3     3   r--     445.0 3
canary                               1     0     2   r--   11463.5 0-2
canary                               1     1     1   r--   10293.0 0-2
canary                               1     2     0   r--    9983.4 0-2

I can't seem to figure out how to do this in the configuration file.  I
can issue the commands to get it to happen:

# xm vcpu-pin 1 0 2
# xm vcpu-pin 1 1 1
# xm vcpu-pin 1 2 0
# xm vcpu-list
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
Domain-0                             0     0     0   -b-    2701.5 3
Domain-0                             0     1     3   -b-     237.3 3
Domain-0                             0     2     3   -b-     217.2 3
Domain-0                             0     3     3   r--     497.9 3
canary                               1     0     2   r--   12547.4 2
canary                               1     1     1   ---   11156.5 1
canary                               1     2     0   -b-   10757.2 0

thanks for any help,
micah

-- 

Attachment: pgppXFV9orZYZ.pgp
Description: PGP signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] pinning CPU affinity, Micah Anderson <=