RE: [Xen-devel] Problems about CPU Affinity

Masaki Kanno
Fri, 18 May 2007 15:00:49 -0000

>
>>> > I thought you could by specifying a list of physical CPUs?
>>> > Perhaps this
>>> > got broken by the xapi changes?
>>>
>>> No, the problem that the original post talks about, is that you
can''t
>>> set affinity of individual VCPU''s to individual
PCPU''s, e.g:
>>> vcpus=2
>>> cpus=2
>>
>>AFAIK, you used to be able to specify a list:
>> vcpus=2
>> cpus = ["2,3,4","5,6,7"]
>
>Hi,
>
>I tried it. It does not work.
>
># xm create cpus=["2,3,4","5,6,7"] vcpus=2 ./PVdomain.1
>Using config file "././PVdomain.1".
>Error: cpus = [2,3,4,5,6,7]: invalid literal for int(): [2
># xm create cpus="["2,3,4","5,6,7"]" vcpus=2
./PVdomain.1
>Using config file "././PVdomain.1".
>Error: cpus = [2,3,4,5,6,7]: invalid literal for int(): [2
>

Hi Ian,

Sorry, it was my mistake.  I thought that the cpus parameter
is able to specify a list currently.

Could you tell me why the patch was not applied?

Best regards,
 Kan