VMware Cloud Community
Grzesiekk
Expert
Expert
Jump to solution

VM Overhead memory

I wanted to ask for confirmation about vm memory overhead.

Normally in vsphere 5 i could get vm memory overhead from :

$vm = get-vm X

$vm.ExtensionData.Runtime.MemoryOverhead


In my vsphere 6 env this is how runtime object looks like:

Device                    : {4000}

Host                      : HostSystem-host-10

ConnectionState           : connected

PowerState                : poweredOn

FaultToleranceState       : notConfigured

DasVmProtection           : VMware.Vim.VirtualMachineRuntimeInfoDasProtectionState

ToolsInstallerMounted     : False

SuspendTime               :

BootTime                  : 27/01/2016 17:06:37

SuspendInterval           : 0

Question                  :

MemoryOverhead            :                <= EMPTY

So i was wondering if now we should take it from :

$vm.ExtensionData.Summary.QuickStats.ConsumedOverheadMemory

Could somebody confirm that is expected behavior in 6 ?

Thank you !

--- @blog https://grzegorzkulikowski.info
Reply
0 Kudos
1 Solution

Accepted Solutions
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Correct.

Below post from William will help you as well.

Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

View solution in original post

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

That is correct.

In fact that property was already deprecated since API 4.1

memoverhead1.png

The other field you are pointing to only shows, afaik, part (consumed) of the overhead.

overhead2.png

As they advise, you should use Get-Stat with the mem.overhead.average.

overhead3.png

Something like this.

I included both values, so you can see that there is a difference

$vm = Get-VM -Name MyVM

$vm.ExtensionData.Summary.QuickStats.ConsumedOverheadMemory

Get-Stat -Entity $vm -Stat mem.overhead.average -Realtime -MaxSamples 1


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Correct.

Below post from William will help you as well.

Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

Reply
0 Kudos
Grzesiekk
Expert
Expert
Jump to solution

Many thanks guys !!! All clear now.

--- @blog https://grzegorzkulikowski.info
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Just remember that the OverheadManager returns the static overhead, while the PerformanceManger returns what is actually used.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos