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] xm sched-credit problem

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xm sched-credit problem
From: Lei Lu <lulei.wm@xxxxxxxxx>
Date: Wed, 14 Sep 2011 21:29:38 -0400
Delivery-date: Wed, 14 Sep 2011 18:33:16 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=YZ3G5X05ORYduqXjrVboKr5x4mdX9xhYUAIT5H7KP6I=; b=WRzQ5ecxcND8E7TSLJU0MnfOVyhjQc7OPtcudggAqacszYaY3Iz+OxKUojwFvR151+ X81UkxICXZglwiStNkp2sMkf+Qeug2Jy/0MJHXnnSi/cD8zu4+pfnNC4Bavx9a6/3gWN Tk6nI2ZN+xaqUCoXlAg46WDeoGk/DnXNn/nRo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,

I have met a very strange problem regarding CPU Cap setting. The thing
is I am trying to dynamically change the CPU cap for one guest domain,
so I try the xm sched-credit command as following

[root@llu]# xm sched-credit
Name                                ID Weight  Cap
Domain-0                             0    256    0
vm8                                    13    256   40
-----------------------------------------------------------
Okay, I want to change its CPU cap to 90%, so, I run the command
-----------------------------------------------------------
[root@llu]# xm sched-credit -d 13 -c 90
-----------------------------------------------------------
It works at first
-----------------------------------------------------------
[root@llu]# xm sched-credit
Name                                ID Weight  Cap
vm8                                    13    256   90
-----------------------------------------------------------
But after about 10 seconds, it automatically set back to 40 again.
[root@llu]# xm sched-credit
Name                                ID Weight  Cap
vm8                                    13    256   40
-------------------------------------------------------------
During those 10 seconds, it did set the CPU cap to 90 percent, which I
have confirmed by running a compute intensive inside the guest VM. I
can observer the 90% CPU through xentop in Dom-0.

I am wondering why it is set back to 40? Is it a common issue or just
for me. The version of xen is 3.3.1. The vm configuration file is
here:

kernel = "/boot/vmlinuz-2.6.18.8-xen"
ramdisk = "/boot/initrd-2.6.18.8-xen.img"
extra = "3"
extra = "xencons=tty"
memory = 1024
vcpus = 1
name = "vm8"
vif = [ 'ip=172.16.2.108,bridge=xenbr0' ]
disk = ['tap:aio:/root/local_VMs/vm8.img,sda1,w']
root = "/dev/sda1"

Best,
Lei

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

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