Hi, I have 5 XCP servers joining a pool. I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 and when:# free -m //on my VMthe total was: 6130 and if:# free -m -tTotal 11698 why it is not 16G? Thanks for you help _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Mar 7, 2011 at 1:24 PM, inas mohamed <inas_2003@yahoo.com> wrote:> Hi, > > I have 5 XCP servers joining a pool. > > I have more than 16G physical RAM free and when I tried to allocate 16G RAM > for my CentOS VM using: > > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 > > > and when: > # free -m //on my VM > the total was: 6130 > and if: > # free -m -t > Total 11698 > > why it is not 16G? > > Thanks for you help > > > _______________________________________________ > >What kernel does your CentOS VM have? Is it 32bit or 64bit? -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for your reply. when # uname -i //on my centos VMx68_64 Is this whet you need to know? --- On Mon, 3/7/11, Rudi Ahlers <Rudi@SoftDux.com> wrote: From: Rudi Ahlers <Rudi@SoftDux.com> Subject: Re: [Xen-users] RAM size problem To: "inas mohamed" <inas_2003@yahoo.com> Cc: xen-users@lists.xensource.com Date: Monday, March 7, 2011, 1:28 PM On Mon, Mar 7, 2011 at 1:24 PM, inas mohamed <inas_2003@yahoo.com> wrote: Hi, I have 5 XCP servers joining a pool. I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 and when:# free -m //on my VMthe total was: 6130 and if: # free -m -tTotal 11698 why it is not 16G? Thanks for you help _______________________________________________ What kernel does your CentOS VM have? Is it 32bit or 64bit? -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 -----Inline Attachment Follows----- _______________________________________________ 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 Mon, Mar 7, 2011 at 11:24 AM, inas mohamed <inas_2003@yahoo.com> wrote:> > Hi, > I have 5 XCP servers joining a pool. > I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184did you restart the CentOS VM after running these?> > and when: > # free -m //on my VM > the total was: 6130 > and if: > # free -m -t > Total 11698 > why it is not 16G? > Thanks for you help > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
when I set these values the VM was halted then I started it from my xen host and then I checked RAM size from VM it self --- On Mon, 3/7/11, Todd Deshane <todd.deshane@xen.org> wrote: From: Todd Deshane <todd.deshane@xen.org> Subject: Re: [Xen-users] RAM size problem To: "inas mohamed" <inas_2003@yahoo.com> Cc: xen-users@lists.xensource.com Date: Monday, March 7, 2011, 2:31 PM On Mon, Mar 7, 2011 at 11:24 AM, inas mohamed <inas_2003@yahoo.com> wrote:> > Hi, > I have 5 XCP servers joining a pool. > I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184did you restart the CentOS VM after running these?> > and when: > # free -m //on my VM > the total was: 6130 > and if: > # free -m -t > Total 11698 > why it is not 16G? > Thanks for you help > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Mar 7, 2011 at 12:34 PM, inas mohamed <inas_2003@yahoo.com> wrote:> > when I set these values the VM was halted then I started it from my xen host and then I checked RAM size from VM it self >What does dmesg on the host and guest repoort for memory?> > --- On Mon, 3/7/11, Todd Deshane <todd.deshane@xen.org> wrote: > > From: Todd Deshane <todd.deshane@xen.org> > Subject: Re: [Xen-users] RAM size problem > To: "inas mohamed" <inas_2003@yahoo.com> > Cc: xen-users@lists.xensource.com > Date: Monday, March 7, 2011, 2:31 PM > > On Mon, Mar 7, 2011 at 11:24 AM, inas mohamed <inas_2003@yahoo.com> wrote: > > > > Hi, > > I have 5 XCP servers joining a pool. > > I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: > > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 > > did you restart the CentOS VM after running these? > > > > > and when: > > # free -m //on my VM > > the total was: 6130 > > and if: > > # free -m -t > > Total 11698 > > why it is not 16G? > > Thanks for you help > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It is the first time to use this command, but any way on VM: Memory: 6659048k/16777216k available (2513k kernel code, 333224k reserved, 1399k data, 184k init) on the master host: I got: Memory: 683100k/778240k available (2344k kernel code, 86752k reserved, 1323k data, 260k init, 0k highmem) thanks again for your help --- On Mon, 3/7/11, Todd Deshane <todd.deshane@xen.org> wrote: From: Todd Deshane <todd.deshane@xen.org> Subject: Re: [Xen-users] RAM size problem To: "inas mohamed" <inas_2003@yahoo.com> Cc: xen-users@lists.xensource.com Date: Monday, March 7, 2011, 2:41 PM On Mon, Mar 7, 2011 at 12:34 PM, inas mohamed <inas_2003@yahoo.com> wrote:> > when I set these values the VM was halted then I started it from my xen host and then I checked RAM size from VM it self >What does dmesg on the host and guest repoort for memory?> > --- On Mon, 3/7/11, Todd Deshane <todd.deshane@xen.org> wrote: > > From: Todd Deshane <todd.deshane@xen.org> > Subject: Re: [Xen-users] RAM size problem > To: "inas mohamed" <inas_2003@yahoo.com> > Cc: xen-users@lists.xensource.com > Date: Monday, March 7, 2011, 2:31 PM > > On Mon, Mar 7, 2011 at 11:24 AM, inas mohamed <inas_2003@yahoo.com> wrote: > > > > Hi, > > I have 5 XCP servers joining a pool. > > I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: > > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 > > did you restart the CentOS VM after running these? > > > > > and when: > > # free -m //on my VM > > the total was: 6130 > > and if: > > # free -m -t > > Total 11698 > > why it is not 16G? > > Thanks for you help > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ 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 Mon, Mar 7, 2011 at 8:09 AM, inas mohamed <inas_2003@yahoo.com> wrote:> > It is the first time to use this command, but any way > on VM: > Memory: 6659048k/16777216k available (2513k kernel code, 333224k reserved, 1399k data, 184k init) >So 16777216k is 16 GB. The guest is getting the right amount. I''m not sure why free is reporting lower values... Could it be a kernel problem of some kind?> > on the master host: > I got: > Memory: 683100k/778240k available (2344k kernel code, 86752k reserved, 1323k data, 260k init, 0k highmem) >So this is dom0, which doesn''t get allocated as much. I don''t have a system handy to test the xen dmesg command for XCP. I think it is in /opt/xensource/ (maybe bin?)> thanks again for your help > > --- On Mon, 3/7/11, Todd Deshane <todd.deshane@xen.org> wrote: > > From: Todd Deshane <todd.deshane@xen.org> > Subject: Re: [Xen-users] RAM size problem > To: "inas mohamed" <inas_2003@yahoo.com> > Cc: xen-users@lists.xensource.com > Date: Monday, March 7, 2011, 2:41 PM > > On Mon, Mar 7, 2011 at 12:34 PM, inas mohamed <inas_2003@yahoo.com> wrote: > > > > when I set these values the VM was halted then I started it from my xen host and then I checked RAM size from VM it self > > > > What does dmesg on the host and guest repoort for memory? > > > > > --- On Mon, 3/7/11, Todd Deshane <todd.deshane@xen.org> wrote: > > > > From: Todd Deshane <todd.deshane@xen.org> > > Subject: Re: [Xen-users] RAM size problem > > To: "inas mohamed" <inas_2003@yahoo.com> > > Cc: xen-users@lists.xensource.com > > Date: Monday, March 7, 2011, 2:31 PM > > > > On Mon, Mar 7, 2011 at 11:24 AM, inas mohamed <inas_2003@yahoo.com> wrote: > > > > > > Hi, > > > I have 5 XCP servers joining a pool. > > > I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: > > > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > > > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 > > > > did you restart the CentOS VM after running these? > > > > > > > > and when: > > > # free -m //on my VM > > > the total was: 6130 > > > and if: > > > # free -m -t > > > Total 11698 > > > why it is not 16G? > > > Thanks for you help > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > -- > > Todd Deshane > > http://www.linkedin.com/in/deshantm > > http://www.xen.org/products/cloudxen.html > > > > > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
1) There is an ugly problem for pv_kernels: thay can not raise memory above value at start time. 2) XCP use dynamic memory technology, intended for -xen kernels (not PV), so they use dynamic-min, dynamic-max values to regulate domain memory automatically. Quick and dirty solution: shutdown VM and set memory-static-min to same value as memory static max (all 4 values can be changed by ''xe vm-memory-limits-set'') On 07.03.2011 14:24, inas mohamed wrote:> Hi, > > I have 5 XCP servers joining a pool. > > I have more than 16G physical RAM free and when I tried to allocate > 16G RAM for my CentOS VM using: > > xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 > xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 > > > and when: > # free -m //on my VM > the total was: 6130 > and if: > # free -m -t > Total 11698 > > why it is not 16G? > > Thanks for you help > > > > _______________________________________________ > 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
Thanks for your reply. I have another problem, now after assigning the values to my VM I tried to start it up but I received the following error:There are no suitable hosts to start this VM on. now I added more hosts to the pool and I already have free memory on some of them (in the pool ) but I don''t have shared storage, when I created the VM I used: xe vm-install template="$VM_OS_UUID" new-name-label="$VM_NAME" $XCP_ID sr-uuid=”sr-uuid of targeted Xen Host”) so now my xen server is trying to start this VM on the same host who has the sr of this VM and giving me cannot start here [ Not enough free memory] why it is not taking the memory from the pool I already have other hosts with enough free memory?? Thanks again.Inas--- On Mon, 3/7/11, George Shuklin <george.shuklin@gmail.com> wrote: From: George Shuklin <george.shuklin@gmail.com> Subject: Re: [Xen-users] RAM size problem To: xen-users@lists.xensource.com Date: Monday, March 7, 2011, 5:37 PM 1) There is an ugly problem for pv_kernels: thay can not raise memory above value at start time. 2) XCP use dynamic memory technology, intended for -xen kernels (not PV), so they use dynamic-min, dynamic-max values to regulate domain memory automatically. Quick and dirty solution: shutdown VM and set memory-static-min to same value as memory static max (all 4 values can be changed by ''xe vm-memory-limits-set'') On 07.03.2011 14:24, inas mohamed wrote: Hi, I have 5 XCP servers joining a pool. I have more than 16G physical RAM free and when I tried to allocate 16G RAM for my CentOS VM using: xe vm-param-set uuid=my-vm-uuid memory-static-max=17179869184 xe vm-param-set uuid=my-vm-uuid memory-dynamic-max=17179869184 and when: # free -m //on my VM the total was: 6130 and if: # free -m -t Total 11698 why it is not 16G? Thanks for you help _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -----Inline Attachment Follows----- _______________________________________________ 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