VMware vSphere

 View Only
  • 1.  (Physical) RAM used by a VM

    Posted Oct 17, 2012 03:45 PM

    I try to measure the real memory (RAM) use of an ESXi host, member of a vSphere 5 infrastructure.

    I need to understand how much RAM is used by a given VM, a Windows Server 2008 R2 guest.

    • The memory size is 6144 MB = 6 GB.
    • The "Host memory" and "Consumed host memory" are 6205 MB
    • Windows' Task Manager (inside the VM) reports the used VM as 3,59 GB
    • Guest Memory % is 6% (6% of what?)
    • Shared Memory, zipped and baloon are reported as 0

    What values shows the amount of host RAM really used?

    Given the ESXi host have 64 GB RAM,how many similar VM can I start before degrading performance?

    From the customer's point of view the question is critical, becaus the answer can help calculating the money they must invest to increase their infrastructure...

    Should we say "Try adding VMs till the performance start decreasing"???

    Regards

    marius



  • 2.  RE: (Physical) RAM used by a VM

    Posted Oct 18, 2012 04:42 PM

    I've got some good information for you. Maybe that helps you to understand what your VMware's doing here:

    http://www.vmware.com/files/pdf/perf-vsphere-memory_management.pdf



  • 3.  RE: (Physical) RAM used by a VM

    Posted Oct 18, 2012 06:39 PM

    I highly recommend the aforementioned document to gain an overall better understanding of how memory management works. Hopefully, this blog post will help out as well:

    http://www.vkernel.com/reader/items/vsphere-memory-usage-metrics-task-manager

    Using the blog post as a reference, memory active and memory consumed at the host level are mostly an aggregate of the active/consumed memory of VMs on the host; therefore, memory consumed is frequently going to overstate what the VMs need from the host and memory active is going to understate what is needed.

    Memory consumed is probably the safest of the two; however, you'll find that as you add more VMs, you'll miraculously find more memory as memory consumed gets de-duplicated via transparent page sharing (TPS) and idle/unused memory pages will get ballooned out of the virtual machines that no longer need them (VMs do not innately give back unused/idle memory to the host until there's a need and they're told to). When you begin to see consistent ballooning on a host, you you've most likely crossed a threshold for capacity where further memory consumption could degrade performance. In particular, there's a chance that consistent ballooning on a VM involves swapping inside the OS, so something to watch for.

    Let us know if this helps or if you have further questions.