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] [PATCH] Improve xm vcpu-pin command for releasing CPU affini

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Improve xm vcpu-pin command for releasing CPU affinity
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Tue, 13 Mar 2007 19:19:51 +0900
Delivery-date: Tue, 13 Mar 2007 03:19:09 -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,

Currently, if users would like to release CPU affinity of virtual 
CPU, they should specify the following values to the third argument 
of the xm vcpu-pin command. 
 - 0-<Maximum physical CPU number>, or
 - 0-63

Generally, almost all users know the number of the physical CPU of 
the machines they are using.  Therefore when they would like to 
release CPU affinity of virtual CPU, they will be able to specify 
an appropriate value to the third argument of the xm vcpu-pin 
command.  However, I think it will be more convenient if they can 
release CPU affinity by specifying a special keyword. 

This patch improves the third argument of the xm vcpu-pin command. 
They are able to release CPU affinity of virtual CPU by specifying 
the special keyword "all". 


# xm vcpu-list vm1
Name                              ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                9     0     1   -b-     552.7 1
vm1                                9     1     0   -b-     560.2 0
# xm vcpu-pin vm1 0 all
# xm vcpu-list vm1
Name                              ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                9     0     0   -b-     553.1 any cpu
vm1                                9     1     0   -b-     560.6 0


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_vcpupin.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Improve xm vcpu-pin command for releasing CPU affinity, Masaki Kanno <=