• Skip to site navigation
  • Skip to blog entries
  • Skip to archive page
  • Skip to right sidebar

Don’t use memory limits – Proofpudding

Eric Sloof - NTPRO.NL

  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About

Monday, 28 June 2010

Don’t use memory limits – Proofpudding

During my weekly VMware training sessions, I’m always getting a bit excited when we reach the module where the ESX and virtual machine memory is covered. I’m trying to explain how important it is; not to use the virtual machine memory limit setting and very often students believe me after checking out their own production environment for ballooning activity and 9 out of 10 times they find a few virtual machine which have a memory limit configured. The memory limit is the upper limit on memory the ESX host makes available to virtual machine. Host memory reclamation happens regardless of the current host free memory state. For example, even if host free memory is in the high state, memory reclamation is still mandatory when a virtual machine’s memory usage exceeds its specified memory limit. If this happens, the ESX server will employ ballooning and, if necessary, swapping to reclaim memory from the virtual machine until the virtual machines host memory usage falls back to its specified limit.

I’ve recorded a video which shows you the Proofpudding and collected some useful links about this topic.

Scott Herold: Memory Behavior when VM Limits are Set
VMware KB: Virtual machine boots very slowly when Memory Limit
Arnim van Lieshout: PowerCLI: Reset CPU and Memory Limits

Posted by
Eric Sloof
in Online Training at 21:18 | 6 Comments | No Trackbacks
Bookmark and Share
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as (Linear | Threaded)
One reason to set a limit (at the same level as the VMs RAM) is that a VMSwap is not created if the Limit is the same as the VMs RAM. This can save a significant amount of expensive SAN storage space if you dont expect to overcomit your hosts from a memory persepective.
#1 Russ Hayward on 2010-06-29 22:02 (Reply)
I think you’re confusion the limit with the reservation, when you configure the reservation the same as configured memory there’s no swap file. Limit has nothing to do with it.
#1.1 Eric Sloof on 2010-06-29 22:15 (Reply)
I've employed both reservations and memory limits to prevent creation of swoap files. I've found that a swap file is created if I don't specify both. I specify memory limit=reservation=allocated ram. E.g. for a VM with 2 GB, I specify both the memory limit and reservation at 2048 MB. I'm not seeing balooning activity on these VMs, but the hosts are not memory constrained.
#1.1.1 Dave Finch on 2010-06-30 03:32 (Reply)
Yes, Russ speaks of memory reservations.
#2 Jason Boche (Homepage) on 2010-06-30 03:48 (Reply)
Limits have absolutely nothing to do with vswap. vswap will not be created when your reservation equals the amount of configured memory for your VM. A limit does not need to be set. Also, if you specify a reservation that equals your configured memory you will never, and let me repeat that, NEVER see ballooning or swapping as you just reserved that whole chunk of memory.
#3 Duncan (Homepage) on 2010-06-30 20:32 (Reply)
I'll confess to being fairly ignorant about the memory utilization but I have implemented limits on our secondary exchange mailstore to keep it from eating all the hosts memory and thus triggering alarms. I would have changed the actual memory allocated to the machine, but that would have caused a reboot. So instead I figured out how much the machine needed and used memory limits to give most of the extra back and stop hogging it. Maybe there's a better way. I'm open to suggestions and corrections :-)
#4 Grant (Homepage) on 2010-09-23 16:59 (Reply)
Add Comment
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
   
Submitted comments will be subject to moderation before being displayed.
 
 


Twitter RSS FeedLinkedIn

www.hetesambal.nl

Veeam Webinar with Doug Hazelman: 5 Steps to Successful Backup & Replication for Hyper-V! Watch it now >>

Recent Entries

Video - vCloud Director 1.5 - Quick Start
Sunday, January 22 2012
White Paper - Mobility and Disaster Recovery Solution for Virtualized Tier-1 Enterprise Applications
Saturday, January 21 2012
Video - Install vSphere Syslog Collector and configure ESXi logging
Friday, January 20 2012
Storage Design and Implementation in vSphere 5.0 - The Rough Cuts
Thursday, January 19 2012
Top 25 Free Tools for VMware vSphere presented by David Davis and Kendrick Coleman
Monday, January 16 2012
LG Android running VMware Horizon Mobile hands-on
Saturday, January 14 2012
Forbes Guthrie has released the vSphere 5 vReference Card
Thursday, January 12 2012
VMworld Session - VMware vMotion in VMware vSphere 5: Architecture, Performance & Best Practices
Wednesday, January 11 2012
Voice Over IP (VoIP) Performance Evaluation on VMware vSphere 5.0
Tuesday, January 10 2012
VMware vCloud Director 1.5 Performance and Best Practices
Monday, January 9 2012

Archive

  • February 2012 (7)
  • January 2012 (22)
  • December 2011 (21)
  • November 2011 (24)
  • October 2011 (27)
  • September 2011 (26)
  • August 2011 (35)
  • July 2011 (26)
  • June 2011 (15)
  • May 2011 (20)
  • April 2011 (22)
  • March 2011 (22)
  • February 2011 (18)
  • January 2011 (13)
  • December 2010 (23)
  • November 2010 (18)
  • October 2010 (31)
  • September 2010 (22)
  • August 2010 (23)
  • July 2010 (19)
  • June 2010 (19)
  • May 2010 (19)
  • April 2010 (20)
  • March 2010 (23)
  • February 2010 (22)
  • January 2010 (30)
  • December 2009 (37)
  • November 2009 (29)
  • October 2009 (27)
  • September 2009 (36)
  • August 2009 (35)
  • July 2009 (35)
  • June 2009 (43)
  • May 2009 (35)
  • April 2009 (56)
  • March 2009 (51)
  • February 2009 (69)
  • January 2009 (69)
  • December 2008 (60)
  • November 2008 (56)
  • October 2008 (49)
  • September 2008 (63)
  • August 2008 (44)
  • July 2008 (54)
  • June 2008 (26)
  • May 2008 (34)
  • April 2008 (27)
  • March 2008 (38)
  • February 2008 (29)
  • January 2008 (35)
  • December 2007 (24)
  • November 2007 (23)
  • October 2007 (20)
  • September 2007 (54)
  • August 2007 (15)
  • July 2007 (22)
  • June 2007 (13)
  • May 2007 (8)
  • April 2007 (20)
  • March 2007 (10)
  • Recent...
  • Older...
Based on the s9y Bulletproof template framework
Powered by s9y – Template by Bulletproof development team.
  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About