Answered by:
Dynamic Memory Configuration

Question
-
Hi all,
Please suggest what is the best practice to configure Dynamics Memory in Hyper V 2012 Failover Cluster .
Lets say we have defined below memory Configuration
Min RAM= 4096
Max RAM= 8192
Memory Buffer Size is = 95%.
What does it actually mean. In virtual machine status its
Memory demand = 1843 MB
Assigned Memory = 4190 MB
In other Virtual Machine Same Configuration shows.
Memory Demand = 4132
Assigned Memory = 7380
Please advise..
- Edited by ITP12 Friday, December 4, 2015 7:45 AM
Friday, December 4, 2015 7:38 AM
Answers
-
Hi,
This article shound answer most.
Hyper-V Dynamic Memory Configuration Guide
Hyper-V running on Windows Server 2012 and Windows Server 2012 R2 automatically calculates an amount of memory to reserve for exclusive use by the management host operating system. This memory is used to run virtualization services. If the computer is part of a failover cluster, Hyper-V also reserves enough memory to run failover cluster services. In previous versions of Hyper-V you might have needed to modify the MemoryReserve registry setting to ensure adequate memory for these functions. This is no longer necessary for Hyper-V running on Windows Server 2012 and Windows Server 2012 R2.
The Min,Max RAM setting should be more aligned to the VM requirements, rather than the Host. Certain Applications, like Exchange Server recommends not to use it.
The reason you see different values are due to the load and demand pattern raised by the VM, the host will automatically adjust the value depending on the requirement calculations done by it.
So the current Memory Demand can be 4132, but it could be the next second its asking for 7k.
Assigned Memory = 7380 works in that case.
While dynamic memory allows Hyper-V to add memory to a virtual machine in just a few seconds (and sometimes under a second) there is still a window of time between when a virtual machine needs memory and when Hyper-V can add memory.
In case you think its not working, setup counters to monitor the behaviour to see if its not working or working.
Regards,
Satyajit
Please“Vote As Helpful” if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.
- Edited by Satyajit321 Friday, December 4, 2015 10:01 AM
- Proposed as answer by Tim CerlingMVP Friday, December 4, 2015 2:31 PM
- Marked as answer by Leo Han Wednesday, December 16, 2015 1:19 AM
Friday, December 4, 2015 9:57 AM
All replies
-
Hi,
This article shound answer most.
Hyper-V Dynamic Memory Configuration Guide
Hyper-V running on Windows Server 2012 and Windows Server 2012 R2 automatically calculates an amount of memory to reserve for exclusive use by the management host operating system. This memory is used to run virtualization services. If the computer is part of a failover cluster, Hyper-V also reserves enough memory to run failover cluster services. In previous versions of Hyper-V you might have needed to modify the MemoryReserve registry setting to ensure adequate memory for these functions. This is no longer necessary for Hyper-V running on Windows Server 2012 and Windows Server 2012 R2.
The Min,Max RAM setting should be more aligned to the VM requirements, rather than the Host. Certain Applications, like Exchange Server recommends not to use it.
The reason you see different values are due to the load and demand pattern raised by the VM, the host will automatically adjust the value depending on the requirement calculations done by it.
So the current Memory Demand can be 4132, but it could be the next second its asking for 7k.
Assigned Memory = 7380 works in that case.
While dynamic memory allows Hyper-V to add memory to a virtual machine in just a few seconds (and sometimes under a second) there is still a window of time between when a virtual machine needs memory and when Hyper-V can add memory.
In case you think its not working, setup counters to monitor the behaviour to see if its not working or working.
Regards,
Satyajit
Please“Vote As Helpful” if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.
- Edited by Satyajit321 Friday, December 4, 2015 10:01 AM
- Proposed as answer by Tim CerlingMVP Friday, December 4, 2015 2:31 PM
- Marked as answer by Leo Han Wednesday, December 16, 2015 1:19 AM
Friday, December 4, 2015 9:57 AM -
A fairly comprehensive description of this can be found at Hyper-V Dynamic Memory Overview
Regards,
Mark Broadbent.
Microsoft Certified Master
Contact me through twitter | blog | sqlcloud
Please click "Propose as answer" if a post solves your problem
or/and vote the post up if it's been helpful.Friday, December 4, 2015 10:25 AM