Question about VM performance and RAM configuration.


  1. Posts : 440
    Windows 10 Home 64-bit, 22H2 19045.4170
       #1

    Question about VM performance and RAM configuration.


    My laptop has a 4GB RAM module and a 2GB module, so only 4GB can work in dual channel mode. The system usually uses about 3GB, but when I'm running a VM, it uses around 5GB. Is it likely that this is why my VM is so sluggish?

    (I'm not sure whether this is a RAM question or a virtualization question.)
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    You only have 6 GB to work with, so it is only natural that your virtual machines are "sluggish".

    Whereas a Linux or Windows XP VM can work quite nicely with just 1 GB virtual RAM, a Windows 7 or later requires much more to really work.

    An extract from a Ten Forums tutorial Hyper-V - Optimizing Virtual Machines:




    Part Six

     Ideal VM settings


    6.1 The ideal settings for a VM is a subjective thing, based on multiple factors. The recommendations in next step are based on following factors:
    • Windows 10 x64 host
    • 16 GB RAM
    • 8 logical processors
    • An SSD and an HDD
    • Guest (VM) OS Windows 10 x64

    6.2 For those specs, my recommended settings for a Windows 10 VM which I have found to be quite good are as follows:
    • 4 GB vRAM
    • 4 vCPU
    • Disable Secure Boot
    • Production Checkpoints
    • Disable Automatic Checkpoints
    • Install on Differenicing disks, Parent Disk on SSD

    6.3 It is extremely important to let host have enough resources to run smoothly. Never run virtual machines with less than 2 GB available for host. That is the absolute minimum, I recommend always having at least 4 GB for host.

    What this means is that if you only have 4 GB of RAM, never assign more than 2 GB for a VM, and from 8 GB RAM, never more than 4 GB.
    Kari
      My Computer


  3. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    gregyurkon said:
    I'm not sure whether this is a RAM question or a virtualization question.

    In addition, if your virtual disks are held on an HDD then a VM will be 'sluggish' no matter how much RAM is available. Ideally you need an SSD.
      My Computers


  4. Posts : 17,661
    Windows 10 Pro
       #4

    Bree said:
    In addition, if your virtual disks are held on an HDD then a VM will be 'sluggish' no matter how much RAM is available. Ideally you need an SSD.
    I run my Hyper-V virtual machines having parent disks on SSD, and child disks on external USB 3 HDD. They are quite fast.

    Hyper-V - Use Differencing Disks

    Kari
      My Computer


  5. Posts : 440
    Windows 10 Home 64-bit, 22H2 19045.4170
    Thread Starter
       #5

    Thanks. I think a $20 RAM upgrade should be good enough for my needs.
      My Computer


  6. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #6

    Kari said:
    I run my Hyper-V virtual machines having parent disks on SSD, and child disks on external USB 3 HDD. They are quite fast.
    Well, my comments were based on one of my laptops with 8GB RAM and an HDD. When the HDD started showing SMART reallocation events I replaced it with an SSD and restored its Macrium image. The performance improvement for windows was noticeable, but the performance improvement for its VMs was phenomenal.
      My Computers


  7. Posts : 17,661
    Windows 10 Pro
       #7

    Bree said:
    Well, my comments were based on one of my laptops with 8GB RAM and an HDD.
    My post was not meant to criticize your comment. Quite the opposite, I agree with you.

    I am using differencing disks, Windows base on a parent VHD on SSD, user data and installed software on a child VHD on HDD. Because of this, parent VHD on SSD, my virtual machines are quite fast.

    Kari
      My Computer


  8. Posts : 11,247
    Windows / Linux : Arch Linux
       #8

    Hi folks
    I'd go for as much RAM as possible when using VM's -- even though modern VM systems dynamically allocate and release RAM for the guest as and when needed .

    W10 will actually run OK on 2GB RAM in a Virtual machine -- depending on of course what applications are themselves running on the VM -- and of course don't forget that the more the HOST is also running concurrently will influence the behaviour of the VM's.

    An 8GB laptop should be fine for running certainly 1 Windows 10 VM - certainly if the OS (Host) is on an SSD -- I've had some VM's on external USB HDD's which have performed quite adequately -- If the Host has only 4GB RAM then forget the whole idea of Virtual machines apart from testing some Linux distros which can run in tiny amounts of RAM.

    So rule should be -- minimum of 8GB RAM and HOST OS on an SSD, don't run too much on the HOST while VM is running and obviously don't overload the VM by trying to run too much on it either unless you can give it a lot of resources.

    For HYPER-V the best way if you can (not really possible on a laptop though) is to passthru hardware like Graphics, network card and HDD/SSD that the GUEST is running on - that way you are using the OS's native systems which usually should yield better performance than using "paravirtualised" hardware -- the use of paravirtualised hardware means that the VM can generally be used on all sorts of real hardware without modification - e.g VMWare VM's don't need any change at all when switching machines or even HOST OS's -- but this comes at a performance price of course.

    Cheers
    jimbo
      My Computer


 

  Related Discussions
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 22:55.
Find Us




Windows 10 Forums