Automation

 View Only
  • 1.  VM Overhead memory

    Posted Feb 09, 2016 09:03 AM

    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 !



  • 2.  RE: VM Overhead memory

    Posted Feb 09, 2016 09:15 AM

    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



  • 3.  RE: VM Overhead memory
    Best Answer

    Broadcom Employee
    Posted Feb 09, 2016 09:41 AM

    Correct.

    Below post from William will help you as well.

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



  • 4.  RE: VM Overhead memory

    Posted Feb 09, 2016 09:57 AM

    Many thanks guys !!! All clear now.



  • 5.  RE: VM Overhead memory

    Posted Feb 09, 2016 10:12 AM

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