I have a Virtual Machine on a ESXi host.
The VM has 4 CPU.
I should how selcet CPU core and Socket number?
4 Cores and 1 Socket
or
2 Cores and 2 Socket
I didn't want to repost the thread in the first reply, but my recommended answer to your question is:
4 vCPU = 4 sockets, each socket 1 core.
Please read this post:
https://communities.vmware.com/message/2736897?tstart=0#2736897
How to choose it has no effect on the performance of the virtual machine?
see below KB for Setting the number of cores per CPU in a virtual machine. Hope you will have good understanding about it
The best thing to do is always by Sockets and use Core only when Guest OS need this (licensing) or ESXi limitation.
The reason is that you doesn't force the NUMA nodes, with Sockets the management will be automatic by the ESXi and the performances will be better for wide VMs.
I didn't want to repost the thread in the first reply, but my recommended answer to your question is:
4 vCPU = 4 sockets, each socket 1 core.