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

[Xen-users] cpu_weight value does nothing.

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] cpu_weight value does nothing.
From: Luke S Crawford <lsc@xxxxxxxxx>
Date: 25 Jun 2008 01:44:04 -0400
Delivery-date: Tue, 24 Jun 2008 22:45:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4861D2B4.1040900@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
So I give my users a weight equal to the amount of ram they buy.

Right now, I'm doing this by hand...

xm sched-credit -d test -w 64  

in this case.  works great.

so, I was poking around thinking about atuomating this today...

xm create --help-config

gives me:
---
cpu_weight=WEIGHT    Set the new domain's cpu weight.
                     WEIGHT is a float that controls the domain's share of
                     the cpu.
---

bootloader = "/usr/bin/pygrub"
cpu_weight=64
memory = 64
name = "test"
vif = ['vifname=test,ip=216.218.223.103,bridge=xenbr0,mac=aa:00:00:53:31:67' ]
disk = [
        'phy:/dev/boar_domU/test_boot,sda,w',
        'phy:/dev/boar_domU/test,sdb,w'
]


but it does nothing. 

[root@boar lsc]# xm sched-credit -d 2
{'cap': 0, 'weight': 256}



this is on CentOS 5.1


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

<Prev in Thread] Current Thread [Next in Thread>