VMware vSphere

 View Only
Expand all | Collapse all

VMware virtual machines occupy the same physical CPU cores instead of different physical cores

  • 1.  VMware virtual machines occupy the same physical CPU cores instead of different physical cores

    Posted Nov 24, 2024 03:35 PM

    After I establishing two identical virtual machines (2x16), two hyper threads occupying the same physical CPU cores instead of different physical cores (my machine has 64 physical cores). The current solution I have come up with is to create a third identical virtual machine, boot it up at the same time, and take two of them that occupy different physical cores; Or close the hyper thread. Is my approach feasible? Is there a smarter way?

    Software version: VMWare Workstation Pro 17.6.1 build-24319023



  • 2.  RE: VMware virtual machines occupy the same physical CPU cores instead of different physical cores
    Best Answer

    Posted Nov 26, 2024 06:06 AM
    Edited by NaiTe Yao Nov 26, 2024 07:30 AM

    That is a very good question, I am not sure how you do that in VMWare Workstation pro and you may have to investigate Windows (assuming that is your host OS) and its processor affinity settings. In ESXi on a multi socket server I would be looking at the cores and socket settings you have available to the VM. Virutualisation is a weird thing and you may still be lie to Workstation and set more sockets than you actually have which may change processor affinity in Windows (or not Windows is also a "Weird Thing") Setting processor affinity for the VMWare Workstation exectuable in Windows is possibly the best first step.

    How to Assign Specific CPU Cores to an Application in Windows - Make Tech Easier

    that above will allow you to test this setting change but it wont be permanent a restart will lose this change I believe.

    How to Permanently Set Priority & Affinity With Shortcut File - Microsoft Community

    this shows how to modify the shortcut file to make this change permanent when launched via the edited shortcut.



    ------------------------------
    IT Manager. That person just about managing to keep the IT going with no budget or staff despite the effects of Senior Management and End Users.

    IT Worker. A biological system for turning caffeine into code.
    ------------------------------