question

GloriaGu-MSFT avatar image
GloriaGu-MSFT asked ·

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

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

windows-10-virtualization
5.png (131.9 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XiaoweiHe-MSFT avatar image
XiaoweiHe-MSFT answered ·

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.

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.