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

[Xen-users] dom0 weight


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: George Shuklin <george.shuklin@xxxxxxxxx>
  • Date: Tue, 22 Mar 2011 22:08:30 +0300
  • Delivery-date: Tue, 22 Mar 2011 12:09:53 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=YtZlDBVhAkDKeQEIny5olLi4aQoEtyCgInMANbPbww3nndz7+nD0Pm/8HTxhtxPZ7x Pl7TRelE9lqVWiBkARbma1RcBjx3rCcbfWVh1PhvYLy14jH1LUjuHMcwhqPBqPEERTqR Xj431uo8MvcJPfh7I9ySl1G8oVJMEpJ2XG3g4=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Good day.

I'm trying to change dom0 weight, but failing - weight going down and it
weight changes dynamically... All other domain do this normally, but
dom0.

I'm using XCP 0.5 with Xen 3.4 (I think, dom0 weight is not controlled
by xapi, so XCP has nothing to this problem).

It looks like this (I'm using this script for testing):

#!/usr/bin/python
import xen.lowlevel.xc as xc
import sys
xc=xc.xc()

domid=int(sys.argv[1])
print "was:", xc.sched_credit_domain_get(domid)
try:
        xc.sched_credit_domain_set(domid,int(sys.argv[2]),
int(sys.argv[3]))
except:
        print "oops"
print "now:", xc.sched_credit_domain_get(domid)


If I do ./dompri X 300, it will be 300 always, but when I do 
./dompri 0 300 I see this:

./dompri 0 300 
was: {'cap': 0, 'weight': 292}
now: {'cap': 0, 'weight': 73}

./dompri 0 300 
was: {'cap': 0, 'weight': 256}
now: {'cap': 0, 'weight': 109}


(so it changes randomly...)

Is this some kind of new feature or this a bug? Anyway, how can I raise
dom0 priority?

---
wBR, George.


_______________________________________________
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®.