VMware vSphere

 View Only
  • 1.  hot remove cpu

    Posted May 14, 2021 10:38 AM

    Hello Experts,

    Need help to locate any official documentation which states hot remove of cpu on any vSphere version is not supported.

    Cheers

     



  • 2.  RE: hot remove cpu

    Posted May 14, 2021 04:23 PM

    Hi . I havent seen anything official and it may also depend on the guest OS too. Thread with some suggestions here:

    https://communities.vmware.com/t5/VMware-vSphere-Discussions/It-s-possible-Memory-hot-remove-or-CPU/td-p/473931



  • 3.  RE: hot remove cpu

    Posted May 14, 2021 04:49 PM

    hi mate,

    I saw that thread and when I check in my lab for rhel 7.5 on vsphere 6.7 - i do not see any option to hot remove cpu on VM edit settings. so in my view (may be i m wrong here) it is linux kernel which supports it but VMware vSphere ( all ) versions does not support cpu hot remove feature.

    Any further help is appreciated.

    cheers

     

     



  • 4.  RE: hot remove cpu

    Posted May 14, 2021 04:54 PM

    I've not done it personally but if you have 'enable CPU hot add' enabled in the VM Settings, can you then actually add an additional CPU hardware and then remove it?



  • 5.  RE: hot remove cpu

    Posted May 14, 2021 04:55 PM

    What im getting at is.. there isnt an 'Enable hot CPU remove' option in any version I dont think - but enabling hot-add may allow you to also remove one.



  • 6.  RE: hot remove cpu

    Posted May 14, 2021 05:56 PM

    I just checked on Windows 2016 and RHEL 7.5 - cpu hot add enabled; i am able to increase the sockets but i am unable to remove the added socket.



  • 7.  RE: hot remove cpu

    Posted May 15, 2021 12:24 PM

    I don’t ever recall vSphere supporting hot remove of compute resources.

     



  • 8.  RE: hot remove cpu

    Posted May 17, 2021 11:49 AM

    Hi Scott,

    Apparently, I came across the following articles and seems the CPU hot remove is possible with some option.

    https://vmninja.wordpress.com/2017/03/07/cpuhotremoveenabled/

    https://kb.vmware.com/s/article/2020993

    Now I am not sure how can w enable this option in my VM edit settings. And, in case this is possible is it a good idea to enable CPU hot remove.

    Any help will be appreciated.

    Cheers



  • 9.  RE: hot remove cpu
    Best Answer

    Posted May 18, 2021 06:11 AM

    So, there's always been discussion around this, and supposedly Server 2016 and 2019 "support" CPU hot remove, but as far as I know that is only on Hyper-V, with it's dynamic allocation settings, not ESXi.  Honestly, I can't see that leading to anything good, as changing your NUMA node while a kernel is running would throw everything into a hot mess in regards to memory addressing and such.  I know Hyper-V does some, as they call it, magic to enable this.  What they are doing is making everything one large NUMA node and goofing with the way the CPU addressing is handled between client and host.  It really gives no benefit.  

    I have to ask, why would you want to Hot-Remove a CPU anyway?  What would the practical purpose be?  Also, you realize even having Hot-Add enabled messes with vNUMA and causes a performance hit just by having it enabled?  Todd Muirhead wrote a wonderful article on this and references the proper KB's from VMware on this (https://blogs.vmware.com/performance/2019/12/cpu-hot-add-performance-vsphere67.html).  Take a gander over it.  Also, one thing I've also learned over the last two decades of using VMware is that the vCPU(s) of the VM is not tied to a particular pCPU (unless you've pinned it, in which case Dante is waiting) so it can run much harder than the equivalent pCPU as long as you don't have the VM oversized and don't have the host overloaded with too many oversized VMs (Co-Stop hell as I like to call it).

    As for the direct answer to your question; they cannot list any and all features that are not supported/available.  The lack of documentation that officially states that CPU Hot-Remove is supported should be evidence enough that it is not supported.  Now if you are referring to that property of VirtualMachineConfigSpec called CpuHotRemoveEnabled that was found in the VISDK, if you try to run the code it will fail.  I'm pretty sure this property got added for some future use, but that has never come to light.  Funny that it is still in vSphere Web Services API v7.0 (https://code.vmware.com/apis/968).

    $VMSpec=New-Object -Type VMware.Vim.VirtualMachineConfigSpec -Property @{"CpuHotRemoveEnabled" =  $true}
    $VM = Get-VM SomeVM
    $VM.ExtensionData.ReconfigVM_Task($VMSpec)