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-devel

[Xen-devel] About CPU Affinity

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] About CPU Affinity
From: Saori Fukuta <fukuta.saori@xxxxxxxxxxxxxx>
Date: Fri, 11 May 2007 20:46:38 +0900
Delivery-date: Fri, 11 May 2007 04:45:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,

I would like to set CPU Affinity like:
    vcpu#0 ---> pcpu#0
    vcpu#1 ---> pcpu#1
When I start the domain by configuration file defined [vcpus=2] and
[cpus="0,1"], the state become as follows.
    vcpu#0 ---> pcpu#0 or pcpu#1
    vcpu#1 ---> pcpu#0 or pcpu#1
So, I have to execute 2 commands to achieve the state.
# xm vcpu-pin foo 0 0
and
# xm vcpu-pin foo 1 1
# xm vcpu-list foo
Name                              ID  VCPU   CPU State   Time(s) CPU Affinity
foo                                0     0     0   r--      39.1 0
foo                                0     1     1   -b-      45.2 1

And there is another problem. The state returns to the previous state
after rebooting the domain. I think the rebooting command should keep
the state.

If I am allocating each 64 CPU in each domain, it is terribly painful to set 
the state again whenever rebooting the domains.

In addition, when we use the configuration file defined as follows:
    vcpus=2 + cpus="0" for DomA 
    vcpus=2 + cpus="1-63" for DomB
the state is useful only for a first time.
The domains will have following state because the state will be reset by
rebooting. It is not a good result.

1) first state
--
     vcpu pcpu
DomA    0    0
        1    0
DomB    0 1-63
        1 1-63

2) allocate 1 pcpu to each vcpu of DomA and decrease 1 pcpu from DomB
--
     vcpu pcpu
DomA    0    0
        1    1
DomB    0 2-63
        1 2-63

3) if rebooting DomB
--
     vcpu pcpu
DomA    0    0
        1    1
DomB    0 1-63
        1 1-63

I think it is important to keep the state even if rebooting the domain,
don't you think?

Thanks,
Saori Fukuta




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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] About CPU Affinity, Saori Fukuta <=