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

Re: [Xen-users] How to dynamically change the Cap value for credit sche

To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] How to dynamically change the Cap value for credit scheduler
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Thu, 28 May 2009 12:16:44 +0700
Delivery-date: Wed, 27 May 2009 22:17:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <23731407.post@xxxxxxxxxxxxxxx>
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>
References: <23731407.post@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, May 27, 2009 at 4:08 AM, falcon_jerboa <qzhu@xxxxxxxxxxx> wrote:
>
> Hi, I have the following problem to solve. Let's say guest domain 1(guest1)
> is allocated with 30% of the physical CPU by running the command " xm
> sched-credit -d guest1 -c 30). Then at some point of the application
> processing hosted in guest1, I need to increase its CPU share from 30% to
> 60%. How can I do this? First, guest1 should notify Xen hypervisor that it
> needs a CPU share change. Then Xen hypervisor makes the change
> automatically(not running the command manually).

No automated way of doing this.
Why do you set the cap if you want it to increase automatically
anyway? That would make the cap meaningless.
If you set the cap to 100, it would use the amount of CPU up to the
equivalent of 1 CPU core. This is the maximum value, so if it only
needs 30% then it only uses 30%, and no more.

-- 
Fajar

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

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