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] Fix cpu_cap option about xm create command

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix cpu_cap option about xm create command
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 16 Nov 2006 18:58:06 +0900
Delivery-date: Thu, 16 Nov 2006 01:59:04 -0800
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,

This patch fixes to enable the cpu_cap option when we create VM with it.

Without this patch you see:
 # xm create /xen/vm1.conf cpu_weight=512 cpu_cap=50
 Using config file "/xen/vm1.conf".
 Started domain vm1
 # xm list
 Name                                      ID   Mem VCPUs      State   Time(s)
 Domain-0                                   0   513     2     r-----    197.8
 vm1                                        9   256     1     r-----      3.9
 # xm sched-credit -d vm1
 {'cap': 0, 'weight': 512}

With this patch applied:
 # xm create /xen/vm1.conf cpu_weight=512 cpu_cap=50
 Using config file "/xen/vm1.conf".
 Started domain vm1
 # xm list
 Name                                      ID   Mem VCPUs      State   Time(s)
 Domain-0                                   0   513     2     r-----    223.9
 vm1                                       10   256     1     r-----      1.1
 # xm sched-credit -d vm1
 {'cap': 50, 'weight': 512}


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

Best regards,
 Kan

Attachment: cpu_cap.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>