|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] pinning CPU affinity
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
--
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 <=
|
|
|
|
|