You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Abdul Rasool <ra...@gmail.com> on 2015/01/14 17:27:37 UTC

VM showing half of the provisioned memory.

Hi,

All the VM instances in ACS is showing half of the memory, actual provision
to this particulate VM is 2GB but instance is showing only 1GB. could you
please explain me why is this happening ?


free -m
             total       used       free     shared    buffers     cached
Mem:           986        977          8          0          0         25
-/+ buffers/cache:        951         35
Swap:         8001       3995       4005

Regards,
AR

Re: VM showing half of the provisioned memory.

Posted by Abdul Rasool <ra...@gmail.com>.
Hi Geoff,

Thanks for your support,

As you suggested I have disabled dynamically scalable option in my template
and stop/start the VM it is showing actual provisioning of RAM. as you
mention its a bug on ACS do you have any idea when will we have this bug
fixed ? as I understand the dynamically scalable correctly then, I am
wondering if my VMs hits peak usage then it will not automatically adjust
the resources.

Please correct me if my understanding is right.

Thanks
AR


On 14 January 2015 at 22:55, Geoff Higginbottom <
geoff.higginbottom@shapeblue.com> wrote:

> Hi Abdul,
>
> This was something Len and I discussed a while back but I am still seeing
> strange behaviour in my current 4.3.2 test system.
>
> What I am seeing is that Windows VMs get 4x the RAM allocated to them on
> the Hypervisor (XenServer) but the OS is also reporting 4x the RAM.
>
> Linux VMs are getting 2x the RAM allocated to them on the Hypervisor
> (XenServer) but the VM is still only reporting its allocated RAM.
>
> However if I recall when I first spotted this in earlier versions, Linux
> VMs would actually get LESS RAM allocated to them which sounds like what
> you are seeing.
>
> I'm sure I logged this as a bug and it looks like the behaviour has
> changed but it is still behaving strangely, at least on XenServer.
>
> I'm sticking with my previous advice to Len which was to not mark
> Templates as Dynamically Scalable.  As Len points out, you simply change
> the Template configuration and then Stop/Start  your VMs.
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbottom@shapeblue.com
>
> -----Original Message-----
> From: Len.Bellemore@alternativenetworks.com [mailto:
> Len.Bellemore@alternativenetworks.com]
> Sent: 14 January 2015 16:43
> To: users@cloudstack.apache.org
> Subject: RE: VM showing half of the provisioned memory.
>
> Hi Abdul,
>
> Are you running XenServer with Dynamic Scaling enabled on your templates?
>
> I had this issue and the only way to fix it was to disable the
> "Dynamically Scalable" option on my templates, then shut down my vms (not
> restart) and then bring them up again.  After that they received all of the
> memory. This was only on Linux machines. Windows vms are fine.
>
> I am using ACS 4.3. It sounds like a bug to me, but not sure.
>
> Len
>
> ---Original Message-----
> From: Abdul Rasool [mailto:rasoolsam@gmail.com]
> Sent: 14 January 2015 16:28
> To: users@cloudstack.apache.org
> Subject: VM showing half of the provisioned memory.
>
> Hi,
>
> All the VM instances in ACS is showing half of the memory, actual
> provision to this particulate VM is 2GB but instance is showing only 1GB.
> could you please explain me why is this happening ?
>
>
> free -m
>              total       used       free     shared    buffers     cached
> Mem:           986        977          8          0          0         25
> -/+ buffers/cache:        951         35
> Swap:         8001       3995       4005
>
> Regards,
> AR
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Software Engineering<
> http://shapeblue.com/cloudstack-software-engineering/>
> CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
> a company registered by The Republic of South Africa and is traded under
> license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>

RE: VM showing half of the provisioned memory.

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Hi Abdul,

This was something Len and I discussed a while back but I am still seeing strange behaviour in my current 4.3.2 test system.

What I am seeing is that Windows VMs get 4x the RAM allocated to them on the Hypervisor (XenServer) but the OS is also reporting 4x the RAM.

Linux VMs are getting 2x the RAM allocated to them on the Hypervisor (XenServer) but the VM is still only reporting its allocated RAM.

However if I recall when I first spotted this in earlier versions, Linux VMs would actually get LESS RAM allocated to them which sounds like what you are seeing.

I'm sure I logged this as a bug and it looks like the behaviour has changed but it is still behaving strangely, at least on XenServer.

I'm sticking with my previous advice to Len which was to not mark Templates as Dynamically Scalable.  As Len points out, you simply change the Template configuration and then Stop/Start  your VMs.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbottom@shapeblue.com

-----Original Message-----
From: Len.Bellemore@alternativenetworks.com [mailto:Len.Bellemore@alternativenetworks.com]
Sent: 14 January 2015 16:43
To: users@cloudstack.apache.org
Subject: RE: VM showing half of the provisioned memory.

Hi Abdul,

Are you running XenServer with Dynamic Scaling enabled on your templates?

I had this issue and the only way to fix it was to disable the "Dynamically Scalable" option on my templates, then shut down my vms (not restart) and then bring them up again.  After that they received all of the memory. This was only on Linux machines. Windows vms are fine.

I am using ACS 4.3. It sounds like a bug to me, but not sure.

Len

---Original Message-----
From: Abdul Rasool [mailto:rasoolsam@gmail.com]
Sent: 14 January 2015 16:28
To: users@cloudstack.apache.org
Subject: VM showing half of the provisioned memory.

Hi,

All the VM instances in ACS is showing half of the memory, actual provision to this particulate VM is 2GB but instance is showing only 1GB. could you please explain me why is this happening ?


free -m
             total       used       free     shared    buffers     cached
Mem:           986        977          8          0          0         25
-/+ buffers/cache:        951         35
Swap:         8001       3995       4005

Regards,
AR
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

答复: VM showing half of the provisioned memory.

Posted by Star Guo <st...@ceph.me>.
Dear Abdul,

If you set mem.overprovisioning.factor	!= 1 in global settings,kvm agent will set instance currentMemory half of memory in libvirt. 
So you can edit /etc/cloudstack/agent/agent.properties and uncomment "vm.memballoon.disable=true", and then restart kvm agent. When you { deploy new instance } or {shutdown instance then restart }, the currentMemory equals memory you view the instance .

Best Regards,
Star Guo

-----邮件原件-----
发件人: Abdul Rasool [mailto:rasoolsam@gmail.com] 
发送时间: 2015年1月15日 1:24
收件人: users@cloudstack.apache.org
主题: RE: VM showing half of the provisioned memory.

Thx Len for your suggestion. I am running kvm as a hypervisor I do remember while I creating  vm I used template which has dynamically scalable. may be I will try creating new vm without using dynamically scalable option and let you know.

Thx
AR.
On Jan 14, 2015 10:31 PM, "Len.Bellemore@alternativenetworks.com" < Len.Bellemore@alternativenetworks.com> wrote:

> Hi Abdul,
>
> Are you running XenServer with Dynamic Scaling enabled on your templates?
>
> I had this issue and the only way to fix it was to disable the 
> "Dynamically Scalable" option on my templates, then shut down my vms 
> (not
> restart) and then bring them up again.  After that they received all 
> of the memory. This was only on Linux machines. Windows vms are fine.
>
> I am using ACS 4.3. It sounds like a bug to me, but not sure.
>
> Len
>
> ---Original Message-----
> From: Abdul Rasool [mailto:rasoolsam@gmail.com]
> Sent: 14 January 2015 16:28
> To: users@cloudstack.apache.org
> Subject: VM showing half of the provisioned memory.
>
> Hi,
>
> All the VM instances in ACS is showing half of the memory, actual 
> provision to this particulate VM is 2GB but instance is showing only 1GB.
> could you please explain me why is this happening ?
>
>
> free -m
>              total       used       free     shared    buffers     cached
> Mem:           986        977          8          0          0         25
> -/+ buffers/cache:        951         35
> Swap:         8001       3995       4005
>
> Regards,
> AR
>


RE: VM showing half of the provisioned memory.

Posted by Abdul Rasool <ra...@gmail.com>.
Thx Len for your suggestion. I am running kvm as a hypervisor I do remember
while I creating  vm I used template which has dynamically scalable. may be
I will try creating new vm without using dynamically scalable option and
let you know.

Thx
AR.
On Jan 14, 2015 10:31 PM, "Len.Bellemore@alternativenetworks.com" <
Len.Bellemore@alternativenetworks.com> wrote:

> Hi Abdul,
>
> Are you running XenServer with Dynamic Scaling enabled on your templates?
>
> I had this issue and the only way to fix it was to disable the
> "Dynamically Scalable" option on my templates, then shut down my vms (not
> restart) and then bring them up again.  After that they received all of the
> memory. This was only on Linux machines. Windows vms are fine.
>
> I am using ACS 4.3. It sounds like a bug to me, but not sure.
>
> Len
>
> ---Original Message-----
> From: Abdul Rasool [mailto:rasoolsam@gmail.com]
> Sent: 14 January 2015 16:28
> To: users@cloudstack.apache.org
> Subject: VM showing half of the provisioned memory.
>
> Hi,
>
> All the VM instances in ACS is showing half of the memory, actual
> provision to this particulate VM is 2GB but instance is showing only 1GB.
> could you please explain me why is this happening ?
>
>
> free -m
>              total       used       free     shared    buffers     cached
> Mem:           986        977          8          0          0         25
> -/+ buffers/cache:        951         35
> Swap:         8001       3995       4005
>
> Regards,
> AR
>

RE: VM showing half of the provisioned memory.

Posted by "Len.Bellemore@alternativenetworks.com" <Le...@alternativenetworks.com>.
Hi Abdul,

Are you running XenServer with Dynamic Scaling enabled on your templates?  

I had this issue and the only way to fix it was to disable the "Dynamically Scalable" option on my templates, then shut down my vms (not restart) and then bring them up again.  After that they received all of the memory. This was only on Linux machines. Windows vms are fine.

I am using ACS 4.3. It sounds like a bug to me, but not sure.

Len

---Original Message-----
From: Abdul Rasool [mailto:rasoolsam@gmail.com] 
Sent: 14 January 2015 16:28
To: users@cloudstack.apache.org
Subject: VM showing half of the provisioned memory.

Hi,

All the VM instances in ACS is showing half of the memory, actual provision to this particulate VM is 2GB but instance is showing only 1GB. could you please explain me why is this happening ?


free -m
             total       used       free     shared    buffers     cached
Mem:           986        977          8          0          0         25
-/+ buffers/cache:        951         35
Swap:         8001       3995       4005

Regards,
AR

Re: VM showing half of the provisioned memory.

Posted by Andrija Panic <an...@gmail.com>.
overprovisioning of RAM by factor 2...

On 14 January 2015 at 17:27, Abdul Rasool <ra...@gmail.com> wrote:

> Hi,
>
> All the VM instances in ACS is showing half of the memory, actual provision
> to this particulate VM is 2GB but instance is showing only 1GB. could you
> please explain me why is this happening ?
>
>
> free -m
>              total       used       free     shared    buffers     cached
> Mem:           986        977          8          0          0         25
> -/+ buffers/cache:        951         35
> Swap:         8001       3995       4005
>
> Regards,
> AR
>



-- 

Andrija Panić