VMWare virttual and cores setup

lam samuel
lam samuel used Ask the Experts™
on
I have VM platform operated by VMWare vCenter Server 5.5.0, build 4180647, hosted by ESXi

physical host server by HP Proliant ML 350p Gen8, CPU E5-2620@2.00Ghz,  2 Processor Socket CPU, 6 cores per socket

When create new VM with OS Windows server 2012. I want use maxmium resource for host.

from VM configuration menu,

What / how "Number of virtual sockets" and "Number of cores per socket " should set to ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ganesh AnandLead Technical Consultant

Commented:
It depends how many core you want to assign for the virtual machines and how many VM you want to use. Here is an article from vmware for cpu and socket allocation. https://kb.vmware.com/s/article/1010184?lang=en_US

If you still have confusion about the VMware cpu allocation please read this article which contains table explains the cores and physical cpu.

https://kb.vmware.com/s/article/2091175
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
You would be VERY UNWISE if you start with more than 2 vCPU.  The way the Hypervisor allocates CPU resources, overcommitting the CPUs to a VM can cause the VM's performance to suffer.

I would STRONGLY suggest you read over this article:
https://www.zdnet.com/article/virtual-cpus-the-overprovisioning-penalty-of-vcpu-to-pcpu-ratios/
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
You want to use ALL the resources CPU and Memory for your VM ?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
my confuse tow items;

Such as my physical HP  ML350p CPU is 2 . Could I assign more than 2 virtual sockets? like assign 24 virtual sockets during Windows server 2012 VM(It current allow me to select this 24 vCPU). If I do that.  It is actually get 24 vCPU to support this VM operation?

Moreover, my HP ML350p CPU cores is 6.  it can allow me to assign 12 cores max. If I assign 12 cores, it can fully apply this HP ML350p available cores (2CPU x6 cores) ?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
The Answer is yes - if you really want to.

But if you want to give this single VM, all the resources, why use a HYpervisor, and make a virtual server.

You might as well install the OS on bare metal, and not use ESXi.

Author

Commented:
Hi, Andrew

Maybe I mislead you.

My question is, when my physical HP ML350p, 2 x CPU and 6 cores per  CPU.

I'm confused my vSphere allow me to set 24 virtual sockets MAX when apply Windows Server 2012 VM.  However, it actually available is 2vCPU. The number of available "cores per CPU" is 6 cores. But, it show available is 12 cores per CPU.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Hyperthreading is enabled.

So therefore you have access to 2 x 6 x 2... = 24 Cores to set in the VM.

Author

Commented:
Hi
As you mentioned have any different on VM performance when set to vcpu x2 x 12 = 24 ores or  1 vcpu x 24 cores?
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:

Author

Commented:
Great info and detail. Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial