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 !
Correct.
Below post from William will help you as well.
Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto
That is correct.
In fact that property was already deprecated since API 4.1
The other field you are pointing to only shows, afaik, part (consumed) of the overhead.
As they advise, you should use Get-Stat with the mem.overhead.average.
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
Correct.
Below post from William will help you as well.
Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto
Many thanks guys !!! All clear now.
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