How to assign vcpu per sockets and enable NUMA settings on vmware vm.
-
Dear Team,
My customer have SAP application VM running on VMware ESXi 6.5. They asked , how to assign vcpu cores per sockets and how to calculate , how many cores per sockets. And also need to enable NUMA features settings in SAP Virtual machine. kindly provide your support for fix the requirement.
thanks
ghani -
You almost never need to specify vCPU to a socket. Are you sure of your requirements?
-
The number of vCPU needed for a workload is always discovered through testing and can't be determined ahead of time. It's dependended on the load, the use case, the application, the OS, the platform, and more, all taken together. You just test. It doesn't matter what the workload is, this is how we determine it.
-
@ghani said in How to assign vcpu per sockets and enable NUMA settings on vmware vm.:
They asked , how to assign vcpu cores per sockets ....
As Jared said, this isn't something that is done... unless there is a weird licensing requirement that is forcing it?
If so, this is called CPU Affinity.
-
for enable numa , we need to set correct cpu cores per socket in vm ?/
-
@ghani said in How to assign vcpu per sockets and enable NUMA settings on vmware vm.:
for enable numa , we need to set correct cpu cores per socket in vm ?/
NUMA is always enabled. NUMA is just part of the system. What are you trying to accomplish? What is making you ask this question?
-
Customer have sap application running on vm. For better performane , need to enable NUMA settings on vm. How to enable NUMA on SAP VM with cpu per sockets
-
@ghani said in How to assign vcpu per sockets and enable NUMA settings on vmware vm.:
Customer have sap application running on vm. For better performane , need to enable NUMA settings on vm. How to enable NUMA on SAP VM with cpu per sockets
But NUMA is always enabled. Why do you feel that "enabling" it is needed? What has led you to this belief?
-
Here is how to set CPU Affinity. But it should be obvious that you should not be doing this. VMware warns against doing this, you really need to know what you are doing and the reason you keep giving as to why you want to do this tells us that you don't know what it is for and are doing it at the wrong time.
For performance, you AVOID CPU Affinity.
-
customer afraid about sap vm performance, because they dont have downtime of sap servers. sap vm best praticies need to assign specific vcpu cores per socket with numa enabled to helps to improve better performance,//
-
@ghani said in How to assign vcpu per sockets and enable NUMA settings on vmware vm.:
customer afraid about sap vm performance, because they dont have downtime of sap servers.
Then they should NOT behave the way that they are. They should do the right thing, rather than just being crazy. They aren't acting like they are afraid of VM performance, they are acting like they are irrational.
And obviously they would be testing this ahead of time no matter what if this was important at all and these kinds of issues wouldn't be things to be questions.
Also, these issues don't cause downtime.
-
@ghani said in How to assign vcpu per sockets and enable NUMA settings on vmware vm.:
sap vm best praticies need to assign specific vcpu cores per socket with numa enabled to helps to improve better performance,//
That's not actually the best practice. You have misinformation. You are using VMware, VMware best practices apply because it is VMware and VMware alone, not SAP, that matters here.
Best practice is to not do what you are doing.
And it is nonsensical, since NUMA is enabled anyway. So whatever your source information is all messed up.
-
I'll throw in a couple of recommendations here as well. One thing you want to be careful of is not spanning a NUMA boundary with the number of vCPU you're giving the SAP VM as this can actually slow down the VM overall. Make sure you do not turn on hotplug CPU for the VM (ability to add additional vCPU with the VM powered on if supported by the guest OS) because it will disable vNUMA.
-
Also, I would highly recommend watching this session from VMworld 2017 about monster VMs that could help anyone needing to virtualize a DB server - https://www.youtube.com/watch?v=sXbOoRo_Wn4. You can get the slide deck here.