Vmware Vcpu Vs Core
So if you have 4 vcpus or 1 vcpu with 4 cores on a vm each core vcpu will run on an lcpu to the os and any application each vcpu virtual core will appear just as that as a core so a sql server will be able to each effectively and the vmkernel will schedule the vcpu virtual core to available physical cores in the esxi host.
Vmware vcpu vs core. What you might not have thought about is that the guest operating systems know not only the number of cpus but also the number of sockets and cores that the cpu has available. Pcpu available on a host. Also a vcpu has been traditionally presented to the guest os in a vm as a single core single socket processor.
Change the vm configuration so that the guest os can see 2 processors with 4 cores each. You can change the way of vcpu presentation for a vmware virtual machine in the vsphere client interface. Pcpu the number of logical cores if hyper threading is enabled on the host.
Of processor sockets x of cores of physical processors i e. With this change you can for example configure the virtual machine with 1 virtual sockets and 8 cores per socket allowing the operating system to use 8 vcpus. Of physical processors i e.
A very important part of understanding this is that when you configure a vcpu on a vm that vcpu is actually a virtual core not a virtual socket. To solve the limitation of physical vmware introduced the vcpu configuration options virtual sockets and cores per socket. The number of physical cores i e.
Setting the number of cores per vcpu for a vmware vm. Change the value cores per socket.