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/
Home Products Support Community News


Re: [Xen-users] about xm vcpu-set

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] about xm vcpu-set
From: Yassine AYACHI <yassinegtr4@xxxxxxxxx>
Date: Thu, 28 May 2009 18:15:21 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 29 May 2009 08:37:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=uSYotbBXYQtkQiMnZC/n1vwJFuo1HUyIteAUKiBmofI=; b=YquukirPXXkonbpxJK1Q6spkYPccB7edvMwhaTZpDq0vvkBECPFB/MfcTETl+2YIzv FpwaytWeOtIBqsXx0RaXGkrOUVnJGuTWROrRXPdD4IPqnCBBTW6pBASrxBv5m7UFsusi s0g5qYyZYf2hcXcxNW5ZWui9fmJ5fy7MqY/cM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=hnXwv92z8yCgoX2lPw3Pfv6raK/wzZ+SZDszHS7ey3jsuOBfvaHvLO/mVhuBxPXBQ8 Q/NvsuxeB7/HGxua7fm/COEirHTOKyLDuczIZpFzkYSuZ3SimxCDZhFl2E5iohiWNDab BE1cjPxXaRMJqMys/GBlkj4vT+Z1vk32Sbf/0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0905281027k1406a56dx17ece4bd0f883b7@xxxxxxxxxxxxxx>
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: <37fcc4580905280452t1e1ebadfs49ebbc5dd1c4c6b9@xxxxxxxxxxxxxx> <7207d96f0905281027k1406a56dx17ece4bd0f883b7@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for replays,

It's clear now,

But I already add vcpus= 4 to my config file and shutdown and start my VM (not only restart) and it works well, all of the vcpus are up and my VM performance increased.

Thanks you for explanation.

2009/5/28 Fajar A. Nugraha <fajar@xxxxxxxxx>
On Thu, May 28, 2009 at 6:52 PM, yassine ayachi
> [root@localhost ~]# xm list
> Name                                      ID Mem(MiB) VCPUs   State
> Time(s)
> Domain-0                                 0     4035     4            r-----
>   29851.8
> domU                                       3     2047     1
> r-----   96114.6
> [root@localhost ~]# xm vcpu-set 3 2

That won't work. The maximum amount of CPU and memory for domU is
determined at domU creation. You can't simply add a CPU like that.

A workaround is to use something like this on domU config file
(old-style config):
memory = "500"
maxmem = "8000"


that way domU will start with 500MB memory, but you'll be able to
expand it later up to 8000MB. As for CPU, it will actually start with
8 CPU but during kernel boot the other 7 will be hot-unplugged (you'll
see lots of "Breaking affinity for irq ..." message during domU boot.
It's normal). You can then hot-plug other CPUs as needed, up to a
maximum of 8.

Note that these work for xenified PV kernels only. It doesn't work
(yet) for pv_ops kernel or HVM guest.


Yassine AYACHI
Ingénieur réseaux et systèmes

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>