VMware Cloud Community
raffic_ncc
Enthusiast
Enthusiast
Jump to solution

Need to understand the ESXi host Memory States on ESXi 5.5

I understand that Prior to vSphere 5, Below are the ESXi memory states. Based on the Free % , ESXi uses Memory management techniques...

6% (High), 4% (Soft), 2% (Hard), 1% (Low)

I am trying to understand the ESXi Free states in ESXi 5.5 and what % which technique will be used... Please help me to understand guys..

Mohammed Raffic VCP4,VCP5,VCAP4-DCA,VCAP5-DCA,VCP-Cloud, MCSA.MCTS,CCA http://www.vmwarearena.com
0 Kudos
1 Solution

Accepted Solutions
ScreamingSilenc
Jump to solution

Check link to the course book which tom was referring http://books.google.co.in/books?id=5E0AY5Pjsl4C&pg=PA115&lpg=PA115&dq=Memory+state+High:+When+this+s...

Please consider marking this answer "correct" or "helpful" if you found it useful.

View solution in original post

0 Kudos
13 Replies
DavoudTeimouri
Virtuoso
Virtuoso
Jump to solution

Hi friend,

check these links:

http://pubs.vmware.com/vsphere-55/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-55-resourc...

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=201764...

-------------------------------------------------------------------------------------
Davoud Teimouri - https://www.teimouri.net - Twitter: @davoud_teimouri Facebook: https://www.facebook.com/teimouri.net/
0 Kudos
raffic_ncc
Enthusiast
Enthusiast
Jump to solution

Davoud,

Thanks for the link.. I have already referred these links.. But it doesn't gives the detail of at what ESXi memory state (High, Soft, Hard and Low), Which memory management technique will be used..???

Mohammed

htttp://www.vmwarearena.com

Mohammed Raffic VCP4,VCP5,VCAP4-DCA,VCAP5-DCA,VCP-Cloud, MCSA.MCTS,CCA http://www.vmwarearena.com
0 Kudos
DavoudTeimouri
Virtuoso
Virtuoso
Jump to solution

The thresholds are related to memory reservation: Impact of memory reservation - frankdenneman.nl

-------------------------------------------------------------------------------------
Davoud Teimouri - https://www.teimouri.net - Twitter: @davoud_teimouri Facebook: https://www.facebook.com/teimouri.net/
0 Kudos
tomtom901
Commander
Commander
Jump to solution

Well, actually, there is some information about this:

Memory state High: When this state is being reached, the VMkernel immediately executes TPS to account for the amount of memory necessary.

Memory state Soft: When this state is being reached, after first hitting high, ballooning (vmmemctl) is working hard to free up some memory to give back to the VMkernel.

Memory state Hard: When a host reaches a hard memory state, it starts swapping VM's memory to the .vswp to free memory. Compression will also help to reduce the number of IO operations that the VMkernel has to do to perform the swapping. Also at this point: Large tables (2M) will be flipped back to 4K to help TPS identify redundant pages in memory.

Memory state Low: The host stops creating new pages for the VM and is actively trying to get memory back.

In a chronological state:

High -> Soft -> Hard -> Low

Which performance wise goes from OK to through the floor.

Hopes this helps,

King_Robert
Hot Shot
Hot Shot
Jump to solution

you can check the CPU and Memeory status of a ESX HOST by using these methods.

Perform the following steps to create a CPU graph that shows data for a virtual machine from the last hour:

1. Connect to a vCenter Server instance with the vSphere Client.

2. Navigate to the Hosts And Clusters or VMs And Templates inventory view.

3. In the inventory tree, select a virtual machine and select the Performance tab from the content pane on the right, and then change the view to Advanced.

4. Click the Chart Options link and in the Customize Performance Chart dialog box, select CPU from the resource type list. Select the Custom interval.

5. Near the bottom of the Chart Options section, change the interval to Last 1 Hours.

6. Set the chart type to Line graph and select the virtual machine itself from the list of objects.

7. From the list of counters, select CPU Usage In MHz (Average) and CPU Ready. This shows you how much processor is actually being used and how long it's taking to schedule the VM on a physical processor and click OK to apply the chart settings.

Perform the following steps to create a real-time graph for a virtual machine's memory usage:

1. Use the vSphere client to connect to a vCenter Server instance and navigate to either the Hosts And Clusters or the VMs And Templates inventory view.

2. In the inventory tree, click a virtual machine. This shows you the Summary tab and click the Performance tab, and switch to the Advanced view.

3. Click the Chart Options link and in the Customize Performance Chart dialog box, select the Memory resource type and the Real-Time display interval.

4. Select Line Graph as the chart type and in the list of counters, select to show the Memory Usage (Average), Memory Overhead (Average), Memory Consumed (Average), and Memory Granted (Average) counters. This shows memory usage, including usage relative to the amount of memory configured for the virtual machine.

5. Click OK to apply the chart options and return to the Performance tab.

0 Kudos
tomtom901
Commander
Commander
Jump to solution

Using esxtop would be much simpeler. If you press m for memory or c for CPU you can easily view all the values you mention. When you go in to the memory view you can see the memory states that Raffic asked for.

0 Kudos
raffic_ncc
Enthusiast
Enthusiast
Jump to solution

Tom,

Do you have official vmware document or link which states the above points about memory states on vSphere 5.x

Mohammed Raffic VCP4,VCP5,VCAP4-DCA,VCAP5-DCA,VCP-Cloud, MCSA.MCTS,CCA http://www.vmwarearena.com
0 Kudos
tomtom901
Commander
Commander
Jump to solution

This is from my notes / coursebook in the Optimize and Scale course delivered by VMware.

0 Kudos
raffic_ncc
Enthusiast
Enthusiast
Jump to solution

Thanks Tom....

Mohammed Raffic VCP4,VCP5,VCAP4-DCA,VCAP5-DCA,VCP-Cloud, MCSA.MCTS,CCA http://www.vmwarearena.com
0 Kudos
tomtom901
Commander
Commander
Jump to solution

No problem, it's clear to you what the states mean? You can mark an answer as helpful or correct if it answers your question. Smiley Happy

I was able to find it here too:

https://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt.pdf

0 Kudos
ScreamingSilenc
Jump to solution

Check link to the course book which tom was referring http://books.google.co.in/books?id=5E0AY5Pjsl4C&pg=PA115&lpg=PA115&dq=Memory+state+High:+When+this+s...

Please consider marking this answer "correct" or "helpful" if you found it useful.
0 Kudos
tomtom901
Commander
Commander
Jump to solution

Ah ok, it's there too. I got this from the Optimize and Scale course notes, but that is an even better example.

0 Kudos
vAnswers
Contributor
Contributor
Jump to solution

Thanks I got more clarity ESXi memory states.

0 Kudos