[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] cpu_weight value does nothing.


  • To: Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Luke S Crawford <lsc@xxxxxxxxx>
  • Date: 25 Jun 2008 01:44:04 -0400
  • Delivery-date: Tue, 24 Jun 2008 22:45:44 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.