RE: [Xen-devel] Problems about CPU Affinity

Petersson, Mats
Fri, 18 May 2007 10:07:43 -0000

> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Ian Pratt
> Sent: 18 May 2007 10:40
> To: Saori Fukuta; xen-devel
> Subject: RE: [Xen-devel] Problems about CPU Affinity
>
> > 1. On boot
> >     We do not have the way of setting CPU Affinity to each VCPU of
> guest
> >     domain by using a configuration file.
> >     So we have to execute the commands after starting the guest
> domain.
>
> 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
Works well, but there''s no way to perform:
vcpu0=pcpu0
vcpu1=pcpu1
Other than running "vm vcpu-set <domain> <vcpu>
<pcpu(s)>" after the
domain was started.

--
Mats
>
> > 2. On reboot
> >     We lost the information of setting CPU Affinity that
> set while the
> >     guest domain is running after rebooting the guest domain.
> >     So we have to set it again.
>
> Affinity information should certainly be persistent.
>
> Best,
> Ian
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel