Hyper-V showing much higher memory demand than displayed in guest OS

Gloria Gu 3,891 Reputation points
2020-07-16T08:22:01.223+00:00

I have enabled dynamic memory allocation on my VMs recently, and as the title suggests, I'm very confused with the "memory demand" value shown in Hyper-V Manager.

For example, I have an Ubuntu 18.04.1LTS guest created using quick create (so it must be officially supported, right?). In the guest OS, I can see the memory usage being 1.76G + 134M swap. If I'm not mistaken, this means ~1.8G memory demand, correct? Even if I include the 10% memory buffer I've set in the VM settings, that's ~2G. However, Hyper-V shows the guest OS has a memory demand of more than 4096M, thus it's assigning all 4G of dynamic memory (max) to the guest OS.

So this is very confusing to me, where does this "memory demand" come from? Can someone else confirm the same situation or is it just me? Can I tell Hyper-V / guest OS to release the memory they are not actively using?

Does this unit have a soul?
12646-5.png

Thread source link: https://social.technet.microsoft.com/Forums/windowsserver/en-US/5df55291-d147-4472-a454-a8d9f2ca15f8/hyperv-showing-much-higher-memory-demand-than-displayed-in-guest-os?forum=win10itprovirt

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,531 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xiaowei He 9,871 Reputation points
    2020-07-16T08:44:24.167+00:00

    Hi,

    Based on my understanding, 570.5M is the current memory in use ,not a memory demand.

    The goal of Dynamic Memory is to optimize memory utilization without sacrificing performance

    Memory Demand – Derived from performance counters, this is the amount of memory required at this time to fulfill the requirements of what is going on in the running VM.

    Please refer to the detail page -

    https://blogs.technet.microsoft.com/chrisavis/2013/03/06/monitoring-dynamic-memory-in-windows-server-hyper-v-2012/

    Sometimes an app or process suddenly demanding more memory.

    And this is always a moment in time. The Memory Demand is a moment in time. It is constantly changing as the running processes in the VM change.

    0 comments No comments

0 additional answers

Sort by: Most helpful