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

Re: [Xen-devel] Question about vcpu_avail

To: Michal Novotny <minovotn@xxxxxxxxxx>
Subject: Re: [Xen-devel] Question about vcpu_avail
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 24 Nov 2009 15:05:07 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 24 Nov 2009 07:05:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B0BF30A.5000102@xxxxxxxxxx>
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
Thread-index: AcptFbEsY2IuNDqVQKac9VhpQoTieQAAdENl
Thread-topic: [Xen-devel] Question about vcpu_avail
User-agent: Microsoft-Entourage/12.23.0.091001
On 24/11/2009 14:51, "Michal Novotny" <minovotn@xxxxxxxxxx> wrote:

>> We already have a config option for that, called 'vcpus'. 'vcpu_avail' can
>> then be used to limit the number of those which are brought online during
>> initial boot. Any new config-file options can be sugar on top of those.
>>    
> Well, imagine scenario you need to allocate 4 vcpus to the guest but you
> need to use only 2 vcpus at startup. So you suggest having `vcpus` and
> `maxvcpus` options in the config file and allocating all the `maxvcpus`
> and setting number of `vcpus` by setting appropriate mask using
> `vcpu_avail` ?

Yeah, I think you get it. In your example: if the user specifies maxvcpus=4,
vcpus=2 then xm turns that into vcpus=4, vcpu_avail=3 before sending it to
xend.

 -- Keir



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