Windows 10: VM's (any) should you set processors / cores to same as host

Discus and support VM's (any) should you set processors / cores to same as host in Windows 10 Virtualization to solve the problem; Hi folks Whatever software you use for your VM's - is there any advantage in setting the virtual vCPU to having less cores / threads / processors than... Discussion in 'Windows 10 Virtualization' started by jimbo45, Apr 1, 2019.

  1. jimbo45 Win User

    VM's (any) should you set processors / cores to same as host


    Hi folks
    Whatever software you use for your VM's - is there any advantage in setting the virtual vCPU to having less cores / threads / processors than the Host.

    AFAIK if a VM is idle it isn't consuming any host resources so the best way to run it as far as I can see is to give it the resources it needs rather than try and run it in "Starvation Mode".

    @Kari

    I assume this is true also if you run in HYPER-V . It seems (at least for me) to be quite difficult to get real dynamic details of resources a VM uses once you've sorted out RAM and I/O systems.

    I've found though intuitively running VM's (at least with VMware) with the vCPU set to same number of processors / cores / threads as the Host and always assuming sufficient RAM and proper disk I/O they run better - especially when loaded quite heavily using the VM config parameters set that way rather than minimising to default vCPU options.

    Any real "Geeky" opinions here =-- I'm actually quite interested in this topic if people have time.

    Cheers
    jimbo

    :)
     
    jimbo45, Apr 1, 2019
    #1
  2. Kari Win User

    Quad Core Host -- should I assign 2 cores to a VM


    The thing with VM and how many cores it's using is that however strange it sounds, adding more cores can actually do just that, slow down the system. The VM can only use cores assigned to it when they are all free to be used, this forces VM occasionally just to wait that host frees the cores.
     
    Kari, Apr 1, 2019
    #2
  3. jimbo45 Win User
    Quad Core Host -- should I assign 2 cores to a VM


    Hi there

    I can't quite work out whether I should assign 2 cores out of a 4 core processor (AMD OPTERON X3421 APU} to a VM running a fairly intensive DB system (MiniSAP or SAP ABAP 7.50 minisap) which has to run on a Linux machine - so I've got it on a Centos VM.

    This application is accessed via a front end GUI on a Windows Host which doesn't do much apart from some email, and EXCEL so the VM actually needs in theory to have the resources.

    I 'm using Physical HDD's for the SAP DB in the VM. I can't run the VM basically as HOST on this machine as I can't get hold of any AHCI / SATA Linux drivers (yet) for this machine and the standard drivers use a HIDEOUS "Fake RAID" system with lousy performance so I've skipped that.

    The windows host simply boots the boot loader from an INTERNAL USB 2 device (/boot on the USB card) which then loads the rest of the OS on to an SSD which works fine.

    I assume that when the VM is idle the cpu cores are available to the Host but I don't know. As far as RAM is concerned -- I have plenty in the machine but new VM software only reserves RAM in use and releases it when not required so the RAM setting is for MAX that the VM can reserve.

    so VM has for physical devices 1 SSD for the OS and 1 2.7 TB for databases etc.


    appreciate any input from gurus here --I can muck about with VM's but things like cpu cores etc is where my knowledge is light.

    Here's the CPU data the VM sees


    VM's (any) should you set processors / cores to same as host [​IMG]



    Cheers
    jimbo
     
    jimbo45, Apr 1, 2019
    #3
  4. jimbo45 Win User

    VM's (any) should you set processors / cores to same as host

    Quad Core Host -- should I assign 2 cores to a VM


    Hi there

    Thanks to you both
    @Kari
    I've found on testing the VM seems to work best with the following settings

    CPU - nr of processors : 1
    nr of Cores : 2

    for HDD for my main Database : Raw HDD --- not SCSI but as SATA and formatted in the VM with native file system -- chose XFS rather than EXT4 and HDD size 2.7 TB (3 TB RED WD NAS Disk), RAM alloc 4GB.

    Although the VM advised using SCSI the I/O worked far better when I set it up as a physical HDD using SATA - probably because I could use the physical SATA driver from the Host rather than a Virtualized SCSI driver. The SAP system has a DB server and an Application server so the whole software is quite intensive and is accessed from the HOST (or other remote clients) by a standard GUI.

    When upping processor or core count to more than 2 I found the VM would hang sometimes -- and a few minutes later so would the Host (W10 X 64 Pro).

    1 Processor with 2 Cores performed the best. Was quite an improvement from using 1 processor and 1 core in the VM config. This might be for the particular CPU I've got -- AMP Opteron X3421. Other ones such as Intel I5/7 might yield totally different results.

    I'm not sure whether that was a problem with how the SAP software handled the multi processing - I suspect it was the underlying VM system.

    Unfortunately the only other server machines I can test this on have a Celeron which doesn't have enough poke to drive this software at any decent sort of response. I can't test this stuff on your average laptop - of course I can log on from a laptop (front end GUI) but the DB server and application server is on the VM.


    I'm happy with the system now as it works fine -- although the SAP DB system causes a huge amount of I/O at VM Power on time -- it settles down after around 2 - 3 mins and as I'm the only user that's OK for me. After this period response time is fine and the Host system barely seems to notice there's this VM running.

    It's very difficult to find decent documentation on optimising processor usage for VM's -- there's plenty on I/O and RAM but virtually nothing on processor usage - probably because most people tend to do "Office" type stuff on VM's or fairly easy things like file / print serving and multi-media streaming - none of which require a lot of CPU processing. Multi-media for example is just sending data like any other file sharing - all the decoding is done on the RECEIVING devices whether phone / TV / Amazon TV / Apple TV / Roku TV / PC etc etc.

    Cheers
    jimbo
     
    jimbo45, Apr 1, 2019
    #4
Thema:

VM's (any) should you set processors / cores to same as host

Loading...
  1. VM's (any) should you set processors / cores to same as host - Similar Threads - VM's should set

  2. In settings - Is device encryption the same as core isolation?

    in Windows 10 Gaming
    In settings - Is device encryption the same as core isolation?: In settings - Is device encryption the same as core isolation? As i am on windows 11 build 22h2, 22621.1555 and cant see isolationThanks https://answers.microsoft.com/en-us/windows/forum/all/in-settings-is-device-encryption-the-same-as-core/eb9d03f0-8303-4a78-9cf6-48c3895cfa36
  3. VM's - What VM OS'es /hosts / virt progs are you using

    in Windows 10 Virtualization
    VM's - What VM OS'es /hosts / virt progs are you using: Hi folks I was just amazed that on a topic on XP I got over 10,000 views and another one over 14,000 -- so I thought would be interesting to get an idea of what VM's people are running, on what type of HOST system and what Virtualisation platform they are using -- I know...
  4. W10 VM on W2K19 VM on KVM Host !! nested VM's

    in Windows 10 Virtualization
    W10 VM on W2K19 VM on KVM Host !! nested VM's: Hi folks So far got HYPER-V to run on a Virtual machine creating a lower level W10 VM - The W2K19 machine is itself a VM running on under KVM/QEMU So far only got Gen 1 to work -- with Gen 2 machine starts but no video - will look at that later but here's the Gen 1 VM So...
  5. Processors/Cores

    in Windows 10 BSOD Crashes and Debugging
    Processors/Cores: Hey, On my windows 10 Pc, i went on task manager and saw that i have 2 cores but 4 logical processors. Is there room to enable all 4 cores, are 2 cores deactivated?? How do I utilize all cores to 100% performance?...
  6. Same number of cores as processors in Task manager

    in Windows 10 Drivers and Hardware
    Same number of cores as processors in Task manager: The short of it is that task manager is displaying the correct number of CPU cores, 6, but also saying that there are only 6 logical processors. Here's the context: I just received the Dell precision 7540 that I ordered so that I can run engineering simulations etc while...
  7. HYPER-V RDP to a VM on the same host

    in Windows 10 Installation and Upgrade
    HYPER-V RDP to a VM on the same host: Hi folks particularly @Kari (the expert on HYPER-V) !!!! I've got a test Linux VM on a laptop running with HYPER-V. I've installed XRDP on it so I was wondering would es RDP from the host to the VM enable me to get sensible resolution on the vm - Needs a bit of fiddling on...
  8. any way to run MacOS in a VM with an AMD processor?

    in Windows 10 Virtualization
    any way to run MacOS in a VM with an AMD processor?: So i want to run macOS High Sierra or Mojave in a VM on my windows PC. I watched a load of tutorials online, and none worked. i then read that you can't run macOS, even in a VM, with an AMD processor, and i have an fx 6300. Is there really no way at all for me to run a VM...
  9. Quad Core Host -- should I assign 2 cores to a VM

    in Windows 10 Virtualization
    Quad Core Host -- should I assign 2 cores to a VM: Hi there I can't quite work out whether I should assign 2 cores out of a 4 core processor (AMD OPTERON X3421 APU} to a VM running a fairly intensive DB system (MiniSAP or SAP ABAP 7.50 minisap) which has to run on a Linux machine - so I've got it on a Centos VM. This...
  10. Network adapter settings to isolate vm from host

    in Windows 10 Virtualization
    Network adapter settings to isolate vm from host: What network adapter settings mean vms can communicate with each other but not with host? Thanks Vmware Workstation 10 69475