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] dom0 weight

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] dom0 weight
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=aTdyOaTG+2pZpAQNLtWNzahFlw1NNoc7DHBJm+pT9Yk=; b=sVeMhl6YPqMDu5XXZqcGNCmR31MX4XaeAlb0hzG0PXCm5DtETGuZXE01aYBDrCkVff WQlCl7OMXLVmPS5HcltZvkkzlsnUrGh6gph+OWKt3ampMS6ISswcUaVnjW5YtNgKKsln XlxUkczpvirPtkc5m60iWk67Wm+uJqKpc7z9w=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] dom0 weight, George Shuklin <=