VMware Cloud Community
jlovera
Contributor
Contributor

Best Practices - Assign CPU to VM

good afternoon

I would like to validate at the cpu level what is the best practice to provision.

I have understood that it is vCPU: pCPU and the relation is 1: 1 - 3: 1 - 4: 1 (Normal)

I wanted to know from both examples that I append which is the best practice to assign cpu to the Vm.

Example 1:

pastedImage_1.png

Example 2:

pastedImage_0.png

ju
0 Kudos
3 Replies
sk84
Expert
Expert

What's the diference between these two examples? In example one you have assigned 8 vCPUs to the virtual machine and in the second example only 6 vCPUs. But that has nothing to do with any best practices.

If we say that a pCore to vCPU ratio of 1:3 is okay, that would mean that you can distribute a total of 72 vCPUs to all virtual machines on a physical server with 24 cores. Whether a machine gets 6 or 8 depends on how many VMs are running on the ESXi host.

--- Regards, Sebastian VCP6.5-DCV // VCP7-CMA // vSAN 2017 Specialist Please mark this answer as 'helpful' or 'correct' if you think your question has been answered correctly.
0 Kudos
HassanAlKak88
Expert
Expert

Hello,

I suggest to check the "Guest Operating System CPU Considerations" paragraph in the following documents (page 47): https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/performance/vsphere-esxi... 

And also the following blogs will help in the calculation part:

How to decide VMware vCPU to physical CPU ratio

https://blog.heroix.com/blog/vmware-vcpu-over-allocation

Please consider marking this answer "CORRECT" or "Helpful" if you think your question have been answered correctly.

Cheers,

VCIX6-NV|VCP-NV|VCP-DC|

@KakHassan

linkedin.com/in/hassanalkak


If my reply was helpful, I kindly ask you to like it and mark it as a solution

Regards,
Hassan Alkak
0 Kudos
Dave_the_Wave
Hot Shot
Hot Shot

This thread is about vCPUs:

About the number of vCPU

0 Kudos