hi! I''m trying to set 2 VCPU for each domU but when I did: xm vcpu-set domU 2 It doesn''t work: xm list Name ID Mem VCPUs State Time(s) Domain-0 0 3960 1 r----- 10617.3 xenmach001 9 1024 1 -b---- 1827.9 Thoughts? Oli _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Have you read the doc ? If yes, you miss the part where it explains that if you set ram or cpu, you need to define it first in the .cfg file. Example : vcpus = ''2''. Then, if you want to reduce vCPU, you can enter the command. But vcpus is the max amount of vcpus, and the vcpus number at start of your domU. For memory, it''s different (mem and max mem). Olivier. XO Project http://xen-orchestra.com On Wed, Feb 17, 2010 at 2:59 PM, Oliver Rojo <orojo@tresmax.asia> wrote:> hi! > > I''m trying to set 2 VCPU for each domU but when I did: > > xm vcpu-set domU 2 > > It doesn''t work: > > xm list > Name ID Mem VCPUs State Time(s) > Domain-0 0 3960 1 r----- 10617.3 > xenmach001 9 1024 1 -b---- 1827.9 > > Thoughts? > > Oli > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yep I think I missed that :D Thank you! ----- Original Message ----- From: Olivier LAMBERT [mailto:lambert.olivier@gmail.com] To: Oliver Rojo [mailto:orojo@tresmax.asia] Cc: xen-users@lists.xensource.com Sent: Wed, 17 Feb 2010 14:19:54 +0000 Subject: Re: [Xen-users] xm vcpu-set not working on domU> Have you read the doc ? > If yes, you miss the part where it explains that if you set ram or > cpu, you need to define it first in the .cfg file. > Example : vcpus = ''2''. Then, if you want to reduce vCPU, you can enter > the command. > But vcpus is the max amount of vcpus, and the vcpus number at start of > your domU. For memory, it''s different (mem and max mem). > > > Olivier. > XO Project > http://xen-orchestra.com > > On Wed, Feb 17, 2010 at 2:59 PM, Oliver Rojo <orojo@tresmax.asia> wrote: > > hi! > > > > I''m trying to set 2 VCPU for each domU but when I did: > > > > xm vcpu-set domU 2 > > > > It doesn''t work: > > > > xm list > > Name ID Mem > VCPUs State Time(s) > > Domain-0 0 3960 > 1 r----- 10617.3 > > xenmach001 9 1024 > 1 -b---- 1827.9 > > > > Thoughts? > > > > Oli > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Feb 17, 2010 at 9:19 PM, Olivier LAMBERT <lambert.olivier@gmail.com> wrote:> Example : vcpus = ''2''. Then, if you want to reduce vCPU, you can enter > the command. > But vcpus is the max amount of vcpus, and the vcpus number at start of > your domU. For memory, it''s different (mem and max mem).Newer Xen version supports this syntax as well vcpus=8 vcpu_avail=1 ... so like mem and maxmem, you''d be able to start small (1 in the example) and grow later. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yep but doesn''t work "properly" : when I get info with API, it returns vcpus number and never vcpus_avail. Other vCPUs are at 0% utilization. So it works, but you can have a correct feedback with API :/ Regards, Olivier. XO Project http://xen-orchestra.com On Wed, Feb 17, 2010 at 10:34 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Wed, Feb 17, 2010 at 9:19 PM, Olivier LAMBERT > <lambert.olivier@gmail.com> wrote: >> Example : vcpus = ''2''. Then, if you want to reduce vCPU, you can enter >> the command. >> But vcpus is the max amount of vcpus, and the vcpus number at start of >> your domU. For memory, it''s different (mem and max mem). > > Newer Xen version supports this syntax as well > > vcpus=8 > vcpu_avail=1 > > ... so like mem and maxmem, you''d be able to start small (1 in the > example) and grow later. > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users