Hi all, To increase a VM performance I launched the command xm vcpu-set domU 2 to add an other processor to my VM. Where can I check if it works knowing that the command xm list dont show a changed cpu nember ? [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 [root@localhost ~]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 4035 4 r----- 29852.2 domU 3 2047 1 r----- 96137.4 An other question, is it healthy that I set more than 2 processors (4 for example) ? Thanks in advance. -- Yassine AYACHI Ingénieur réseaux et systèmes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
xm list should show the change in the number of vCPUs assigned to a domU - it does on my Xen installations, anyway. You may need to set the "maxvcpus" parameter in the configuration file for your domU and delete and re-add the domU to Xen for this to work properly. As long as you have the physical CPUs and/or cores to support 4 vCPUs, there should be no problem with this. I have four 8-core machines and have several domUs that run 4 vCPUs. -Nick>>> On 2009/05/28 at 05:52, yassine ayachi <ayachi.yassine@gmail.com>wrote: Hi all, To increase a VM performance I launched the command xm vcpu-set domU 2 to add an other processor to my VM. Where can I check if it works knowing that the command xm list dont show a changed cpu nember ? [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 [root@localhost ~]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 4035 4 r----- 29852.2 domU 3 2047 1 r----- 96137.4 An other question, is it healthy that I set more than 2 processors (4 for example) ? Thanks in advance. -- Yassine AYACHI Ingénieur réseaux et systèmes -------- This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for replay, You''re right, I assigned 4 vcpus and my VM load average decreased remarkably. Only one trick to report the VM must be shutdown then start and not restart. Thanks again, 2009/5/28 Nick Couchman <Nick.Couchman@seakr.com>> xm list should show the change in the number of vCPUs assigned to a domU > - it does on my Xen installations, anyway. You may need to set the > "maxvcpus" parameter in the configuration file for your domU and delete and > re-add the domU to Xen for this to work properly. > > As long as you have the physical CPUs and/or cores to support 4 vCPUs, > there should be no problem with this. I have four 8-core machines and have > several domUs that run 4 vCPUs. > > -Nick > > > >>> On 2009/05/28 at 05:52, yassine ayachi <ayachi.yassine@gmail.com> > wrote: > Hi all, > > To increase a VM performance I launched the command xm vcpu-set domU 2 to > add an other processor to my VM. > > Where can I check if it works knowing that the command xm list dont show a > changed cpu nember ? > > [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 > > [root@localhost ~]# xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 4035 4 r----- 29852.2 > domU 3 2047 1 r----- 96137.4 > > An other question, is it healthy that I set more than 2 processors (4 for > example) ? > > Thanks in advance. > > -- > Yassine AYACHI > Ingénieur réseaux et systèmes > > ------------------------------ > <br><hr> > This e-mail may contain confidential and privileged material for the sole > use of the intended recipient. If this email is not intended for you, or you > are not responsible for the delivery of this message to the intended > recipient, please note that this message may contain SEAKR Engineering > (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly > prohibited from downloading, photocopying, distributing or otherwise using > this message, its contents or attachments in any way. If you have received > this message in error, please notify us immediately by replying to this > e-mail and delete the message from your mailbox. Information contained in > this message that does not relate to the business of SEAKR is neither > endorsed by nor attributable to SEAKR. >-- Yassine AYACHI Ingénieur réseaux et systèmes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, May 28, 2009 at 6:52 PM, yassine ayachi <ayachi.yassine@gmail.com> wrote:> [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" vcpus=8 vcpu_avail=1 #===================== 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. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@fajar.net>> On Thu, May 28, 2009 at 6:52 PM, yassine ayachi > <ayachi.yassine@gmail.com> wrote: > > [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" > > vcpus=8 > vcpu_avail=1 > #=====================> > 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. > > -- > Fajar >-- Yassine AYACHI Ingénieur réseaux et systèmes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@fajar.net>> On Thu, May 28, 2009 at 6:52 PM, yassine ayachi > <ayachi.yassine@gmail.com> wrote: > > [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" > > vcpus=8 > vcpu_avail=1 > #=====================> > 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. > > -- > Fajar >-- Yassine AYACHI Ingénieur réseaux et systèmes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Actually, Fajar, that''s not correct. In my config files, I have: vcpus=2 maxvcpus=4 So, domU starts out with VCPUs = 2, and I can use xm vcpu-set <domain> 4 to bring it up to 4 vCPUs. Works perfectly. -Nick>>> On 2009/05/28 at 11:27, "Fajar A. Nugraha" <fajar@fajar.net> wrote:On Thu, May 28, 2009 at 6:52 PM, yassine ayachi <ayachi.yassine@gmail.com> wrote:> [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" vcpus=8 vcpu_avail=1 #===================== 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. -- Fajar -------- This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 29, 2009 at 3:29 AM, Nick Couchman <Nick.Couchman@seakr.com> wrote:> Actually, Fajar, that''s not correct. In my config files, I have: > > vcpus=2 > > maxvcpus=4 > > So, domU starts out with VCPUs = 2, and I can use xm vcpu-set <domain> 4 to > bring it up to 4 vCPUs. Works perfectly.Odd. Even on Xen 3.4 there''s no such thing as "maxvcpus" (at least not from "xm create --help_config" or "man xmdomain.cfg". What version of Xen are you using, on what distro? How did you discover that parameter? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Please change the HT status in your Bios to fix it. http://copilotconsulting.com/mail-archives/xen.2006/msg01605.html -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Fajar A. Nugraha Sent: Friday, May 29, 2009 6:38 AM To: Xen User-List Subject: Re: [Xen-users] about xm vcpu-set On Fri, May 29, 2009 at 3:29 AM, Nick Couchman <Nick.Couchman@seakr.com> wrote:> Actually, Fajar, that''s not correct. In my config files, I have: > > vcpus=2 > > maxvcpus=4 > > So, domU starts out with VCPUs = 2, and I can use xm vcpu-set <domain> 4to> bring it up to 4 vCPUs. Works perfectly.Odd. Even on Xen 3.4 there''s no such thing as "maxvcpus" (at least not from "xm create --help_config" or "man xmdomain.cfg". What version of Xen are you using, on what distro? How did you discover that parameter? -- 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
I''m running Xen 3.2.0 on SLES10. Can''t remember how I stumbled upon that parameter... -Nick>>> On 2009/05/28 at 19:07, "Fajar A. Nugraha" <fajar@fajar.net> wrote:On Fri, May 29, 2009 at 3:29 AM, Nick Couchman <Nick.Couchman@seakr.com> wrote:> Actually, Fajar, that''s not correct. In my config files, I have: > > vcpus=2 > > maxvcpus=4 > > So, domU starts out with VCPUs = 2, and I can use xm vcpu-set <domain> 4 to > bring it up to 4 vCPUs. Works perfectly.Odd. Even on Xen 3.4 there''s no such thing as "maxvcpus" (at least not from "xm create --help_config" or "man xmdomain.cfg". What version of Xen are you using, on what distro? How did you discover that parameter? -- Fajar -------- This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 29, 2009 at 11:38 PM, Nick Couchman <Nick.Couchman@seakr.com> wrote:> I''m running Xen 3.2.0 on SLES10. Can''t remember how I stumbled upon that > parameter...It didn''t work on my Xen 3.3.1. Probably Suse-specific patch. Nice feature though. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users