Hyper-V and Windows 10 Guest speed


  1. Posts : 1,088
    Windows 1.00 to Windows 10 Pro 64-bit Build 17713
       #1

    Hyper-V and Windows 10 Guest speed


    What are the best memory settings for a Windows 10 Guest on Hyper-V?

    16 Gb of physical memory
      My ComputerSystem Spec

  2. Bree's Avatar
    Posts : 10,526
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #2

    fjk61011 said: View Post
    What are the best memory settings for a Windows 10 Guest on Hyper-V
    16 Gb of physical memory
    I just take the defaults offered when setting up a new virtual machine: 1024MB initial with dynamic memory enabled. On a 16GB machine the dynamic memory will allocate more memory to the VM as required, up to a maximum of 1048576MB by default (you may want to lower that upper limit to leave some for the host). These settings work very well with any Windows guest I've tried (XP, W7, W8 & W10).

    If speed is your concern, then the hard drive is by far the more important factor. I have just migrated all my VM's from a machine with an HDD to one with an SSD. The two machines are similar specs apart from the hard drive but the difference in speed is dramatic. The VMs run as fast as if they were installed directly on the machine.
      My ComputersSystem Spec

  3.    #3

    Bree said: View Post
    I just take the defaults offered when setting up a new virtual machine: 1024MB initial with dynamic memory enabled. On a 16GB machine the dynamic memory will allocate more memory to the VM as required, up to a maximum of 1048576MB by default (you may want to lower that upper limit to leave some for the host). These settings work very well with any Windows guest I've tried (XP, W7, W8 & W10).

    If speed is your concern, then the hard drive is by far the more important factor. I have just migrated all my VM's from a machine with an HDD to one with an SSD. The two machines are similar specs apart from the hard drive but the difference in speed is dramatic. The VMs run as fast as if they were installed directly on the machine.
    Re. SSD, totally the way to go.

    Re. dynamic memory, I have found it can be temperamental, and prefer to use fixed RAM and initially set at 4 GB but you really need at least 8 GB RAM to do this. Dynamic is better if using multiple vms and limited RAM of course.
      My ComputerSystem Spec

  4. Bree's Avatar
    Posts : 10,526
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #4

    cereberus said: View Post
    Re. dynamic memory, I have found it can be temperamental... Dynamic is better if using multiple vms and limited RAM of course.
    Well, I'l defer to your judgment, you have been VM'ing longer than me. Anyway, apart from setting it so small that the VM thrashes its swapfile, I can't see that 'tuning' the RAM could make much difference to the speed.
    ...prefer to use fixed RAM and initially set at 4 GB but you really need at least 8 GB RAM to do this.
    The OP said they have 16GB, so that should be OK.
      My ComputersSystem Spec

  5. Kari's Avatar
    Posts : 15,637
    Windows 10 Pro
       #5

    As allocated RAM, an equally important factor is the number of virtual processors (vCPU) you assign to a VM.

    A good rule of thumb is to add 0.5 to 1 vCPU per VM per core on host CPU. Start testing VM performance with lower number of vCPU, for instance only one vCPU per four host cores, run the VM and check % Guest Run Time graph in Performance Monitor on host machine (not on VM). Shut down VM, increase the number of vCPU, run VM and check the graph again.

    Screenshot shows how to add % Guest Run Time graph in Performance Monitor:

    Click image for larger version. 

Name:	image.png 
Views:	4 
Size:	355.2 KB 
ID:	225065

    An example. A W10 PRO x64 version 1809 virtual machine using 4 GB static vRAM and two vCPU, running Windows Update. Hyper-V Manager shows its CPU usage fluctuates between 12% and 20%, and % Guest Run Time graph looks like this:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	357.2 KB 
ID:	225066

    It's OK, you should only be worried about performance if the graph for a VM shows constant high values (over 75). Peeks can be up to 90, but if either the peek value often goes to over 90, or graph remains constantly close to 75, you need more vCPU.

    Same VM, with 8 vCPU. Running WIndows Update on it looks much better, Hyper-V Manager shows CPU usage fluctuates between 1% and 3%, and the % Guest Run Time graph looks much better:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	312.2 KB 
ID:	225067

    Virtual machine also feels "snappier" with 8 vCPU.

    Kari
    Last edited by Kari; 4 Weeks Ago at 10:22. Reason: Typos.
      My ComputerSystem Spec


  6. Posts : 1,088
    Windows 1.00 to Windows 10 Pro 64-bit Build 17713
    Thread Starter
       #6

    Kari said: View Post
    As allocated RAM, an equally important factor is the number of virtual processors (vCPU) you assign to a VM.

    A good rule of thumb is to add 0.5 to 1 vCPU per VM per core on host CPU. Start testing VM performance with lower number of vCPU, for instance only one vCPU per four host cores, run the VM and check % Guest Run Time graph in Performance Monitor on host machine (not on VM). Shut down VM, increase the number of vCPU, run VM and check the graph again.

    Screenshot shows how to add % Guest Run Time graph in Performance Monitor:

    Click image for larger version. 

Name:	image.png 
Views:	4 
Size:	355.2 KB 
ID:	225065

    An example. A W10 PRO x64 version 1809 virtual machine using 4 GB static vRAM and two vCPU, running Windows Update. Hyper-V Manager shows its CPU usage fluctuates between 12% and 20%, and % Guest Run Time graph looks like this:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	357.2 KB 
ID:	225066

    It's OK, you should only be worried about performance if the graph for a VM shows constant high values (over 75). Peeks can be up to 90, but if either the peek value often goes to over 90, or graph remains constantly close to 75, you need more vCPU.

    Same VM, with 8 vCPU. Running WIndows Update on it looks much better, Hyper-V Manager shows CPU usage fluctuates between 1% and 3%, and the % Guest Run Time graph looks much better:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	312.2 KB 
ID:	225067

    Virtual machine also feels "snappier" with 8 vCPU.

    Kari
    Set to 4 vCPUs. Running well.
      My ComputerSystem Spec

  7.    #7

    If using dynamic memory, I find bumping the memory buffer from 20% to 30% makes a noticeable difference in performance. If the virtual disk is on an HDD, taking it to 50% is a good idea. This lets the guest OS cache more stuff in memory.
      My ComputerSystem Spec


 

Related Threads
Hi there I'm gradually giving up on VMWare to go to HYPER-V. One issue I have is that if I create a Linux server VM I still want to use existing XFS formatted HDD's on the Guest in RAID arrays. There's around 10 TB of space - and about 3 TB of...
Although both Windows 10 Home and Pro support use of a PIN for login on devices, that does not appear to be the case when using Hyper-V virtual machines. I have three W10 Home x64 virtual machines and five W10 Pro x64 virtual machines spread...
When first time installing XPmode in a Windows 7 guest hosted by Hyper V on my Windows 10, the installation freezes and Hyper-V Manager says: Communication Lost. This happens a lillle time after step 10 of this guide is started : Windows XP Mode...
I have an old DOS program that runs fine in a console window under native Windows XP. I've setup a shortcut on the XP machines and selected full screen. When the application runs it opens full screen. On a Windows 10 with a Hyper-V instance of...
Hi I have a vm with win 7 guest os that i can not install integrated services on the option to install it is not in the action meny. have read a lot of post on the internet but nothing seams to help. have logged on as admin on both the host...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:53.
Find Us