VMware Cloud Community
timbCFCA
Contributor
Contributor
Jump to solution

Active vs consumed memory

First let me apologize. I realize there have been a lot of topics regarding memory metrics. I haven't found anything which addresses what I've seen.

I fired up a copy of memtest86+ on VM system allocated 16 GB of RAM. The host has no other running VMs.

The performance chart indicated about 12 GB active but only about 6GB consumed. I was under the impression that the consumed memory would always be the highest metric; how and is it possible to have the active memory higher?

0 Kudos
1 Solution

Accepted Solutions
Deepeer
VMware Employee
VMware Employee
Jump to solution

When memtest86+ is running , it starts writting some data pattern

... If the data pattern wriiten is same , those guest pages will be

sharing same physical page due to transparent page sharing . In your

case , 6GB contains same data pattern and can be observed in "shared

saved" from the performance chart .

please check below link for finer details

http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/memory_counters.html

Hope this helps ..

View solution in original post

0 Kudos
3 Replies
RParker
Immortal
Immortal
Jump to solution

Memory Active

Units: KB Internal Name: active

Amount of guest physical memory recently used by the VM, which is estimated by

VMkernel statistical sampling.

Memory Consumed

Units: KB Internal Name: consumed

Amount of machine memory allocated to the VM, accounting for savings from memory

sharing with other VMs. Memory Overhead is not included.

When multiple VMs are sharing a single region of machine memory, each VM is

“charged” for the memory proportionally based on the total references to that region of

shared memory. For instance, if a VM has 100 MB of memory that is shared equally

with three other VMs, then that VM’s portion of the shared memory is only 25 MB (100

MB / 4 VMs) for the Memory Consumed statistic.

Memory Granted

Units: KB Internal Name: granted

Amount of guest physical memory currently mapped to (i.e., backed by) machine

memory. Memory Overhead is not included, but Memory Shared is.

Note that this is not the amount of machine memory used by the VM; Memory

Consumed measures a VM’s machine memory usage.

So what's the difference? Consumed is from the HOST perspective, Granted is MAPPED memory, including what is shared between VM's and Active is from the VM (guest OS) perspective .

Deepeer
VMware Employee
VMware Employee
Jump to solution

When memtest86+ is running , it starts writting some data pattern

... If the data pattern wriiten is same , those guest pages will be

sharing same physical page due to transparent page sharing . In your

case , 6GB contains same data pattern and can be observed in "shared

saved" from the performance chart .

please check below link for finer details

http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/memory_counters.html

Hope this helps ..

0 Kudos