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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: xm sched-credit problem
From: Lei Lu <lulei.wm@xxxxxxxxx>
Date: Wed, 14 Sep 2011 22:39:54 -0400
Delivery-date: Wed, 14 Sep 2011 19:40:48 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=cpNDm/d1fv+msTMw2DfbVGZsoVpa3++RdgFj4AKG4Wk=; b=x9RDt0lLZzpWzEKX2/ZikfS8ikLKvXz6mrIDwINlL+Evn4HZozvkET+kMArhM4jVBM Puai2ilmYZg4k0h3JVy3z92AdtBtd/Wt50FK7w0Pr4BQo95Lg6lvhaPJuyoqRwtejiWL gpOyNEZ6VJazKwVuA8H+x8O2G1pPS2w6OG93c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CA+Pwbckde8teW==Y=awS9iM095Um7Sugmy7jS7r2o7PkJqBBmg@xxxxxxxxxxxxxx>
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>
References: <CA+Pwbckde8teW==Y=awS9iM095Um7Sugmy7jS7r2o7PkJqBBmg@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Not a problem any more. Lei

On Wed, Sep 14, 2011 at 9:29 PM, Lei Lu <lulei.wm@xxxxxxxxx> wrote:
> 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>