Windows 10: Quad Core Host -- should I assign 2 cores to a VM Solved

  1.    13 Dec 2017 #1

    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

    Click image for larger version. 

Name:	snapshot1.png 
Views:	0 
Size:	103.5 KB 
ID:	167995


    Cheers
    jimbo
    Last edited by jimbo45; 13 Dec 2017 at 07:19.
      My ComputerSystem Spec

  2.    13 Dec 2017 #2

    @Kari has exercised Hyper-V as much as anybody else I know here. Maybe he'd like to weigh in. My somewhat more slipshod take on this is that your workload more or less demands as much I/O capability as you can give that VM. More cycles couldn't hurt, either. If you don't get an answer here (or one you like) you can always try the experimental method.
    HTH,
    --Ed--
      My ComputersSystem Spec

  3. Kari's Avatar
    Posts : 15,040
    Windows 10 Pro
       13 Dec 2017 #3

    Assign 2 cores, then on CentOS guest use command top in terminal to check how well / badly those cores are doing when your application is idle / not running and then the same when application is up and running. Repeat with just a single core assigned and see the difference.
      My ComputerSystem Spec

  4.    14 Dec 2017 #4

    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
      My ComputerSystem Spec

  5. Kari's Avatar
    Posts : 15,040
    Windows 10 Pro
       14 Dec 2017 #5

    jimbo45 said: View Post
    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).
    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.
      My ComputerSystem Spec

  6. JDobbsy1987's Avatar
    Posts : 1,425
    Windows 10 Pro x64
       14 Dec 2017 #6

    Kari said: View Post
    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.
    This is something i wasn't aware of, very interesting to know.

    Thank you Kari
      My ComputerSystem Spec

  7.    14 Dec 2017 #7

    Hi folks

    Thanks kari

    Cheers
    jimbo
      My ComputerSystem Spec

  8.    14 Dec 2017 #8

    Great info from all. I'm going to talk to Kari about writing an article, or series of articles, on optimizing VMs for specific or various workloads in Hyper-V. You've helped to shed light on some interesting possibilities! Thanks,
    --Ed--
      My ComputersSystem Spec

  9.    14 Dec 2017 #9

    Hi folks

    and to @Kari

    If you like the sort of refreshment suggested in the text of your avatar

    "Liquid Lobotomy " in Belgium -- i.e great Beer always worth while

    " Vökvi Lobotomy" in Icelandic or I think in Finnish as follows

    "Neste Lobotomia"

    Beer though is Universal !!!!.

    Cheers
    jimbo
      My ComputerSystem Spec


 

Related Threads
Source: Experience Extreme Performance Today with Arrival of Intel Core X-series Extreme Edition 18-core Processor, Alongside 14- and 16-core | Intel Newsroom
Read more: Microsoft Security Advisory 4021279
You can see the specs under my avatar, but I have been checking around on websites and find confusing info. Some say yes, you can upgrade, others say the BIOS will not support it. I am using Windows 10 Forum because I have (Obviously) updated this...
I upgraded to Win 10 in late July, but lately realized maybe Microsoft might not be providing the updates to solve my current issues. My computer is pretty old, and the hardware is the same as it came out of the box, other than attaching a spare...
Hi All. I run a Quad Boot Menu. Windows XP Home, Windows 7 Home Premium, Windows 8.1 Pro and Windows 10 Pro. All 3 previous OS versions worked fine from the menu till I added the Windows 10 OS to that same menu. When restarting or rebooting FROM...
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 11:07.
Find Us