Is there a way to limit the number of logical CPUs that an underlying VM will use (on a Windows 10 host running VMWare Workstation 15 Professional)?
I've tried changing the number of cores per processor but it doesn't have the desired effect. I have 8 cores, but if I set this number to 4, then all 8 cores are still used.
The only solution I know of is to start the VM, get the PID of the VM, and then change the processor affinity (manually) to the logical CPUs I want to limit the VM to use.
I searched the VMWare knowledge base for "limit cpu vmware workstation" (URL is https://kb.vmware.com/s/global-search/%40uri#q=limit%20cpu%20vmware%20workstation&t=Knowledge&sort=relevancy), and get back an error Something went wrong.
This is important because of another question I have, see What VmWare VM is associated with a Process (pid) (on Windows Host)?.
I have noticed since changing the number of processors to a smaller number that when the VM enters what I call CPU burn the VM does not use all of the host CPU. So, if I have 8 cores and set the VM to use 4 cores, then when the VM is in CPU burn, the host VM will only allow that VM to consume 50% of the host's processing power. This in spirit addresses my problem which was trying to limit a VM from using all the hosts CPU power. – PatS Mar 30 '19 at 15:59