VMware Edu & Cert Community
THADC
Contributor
Contributor
Jump to solution

Logical CPUs versus vCPUs per ESXi Host

Hello,

I am looking at the ESXi Host Configuration Maximums and realizing I don't know what the distinction is between Logical CPUs per ESXi Host (160) and vCPUs per ESXi Host (2048). Any explanation is greatly appreciated. Thanks!

0 Kudos
1 Solution

Accepted Solutions
prashanthbgoud
Enthusiast
Enthusiast
Jump to solution

hmm...

okay let me try to explain you.

1LCPU can be pinned to multiple VM's.

if I have 1 quad core CPU, I have 4 LCPUs

I can create multiple VM's like

1) 1 VM with 1 vcpus

2) 1 VM with 2 vcpus

3) 1 VM with 4 vcpus

1st VM will be pinned to 1st LCPU.

2nd VM will be pinned to 2nd, 3rd LCPU.

3rd VM will be pinned to 1,2,3,4 LCPU.

if the cpu reqquest comes from 1st VM and 3rd VM at the same time, then it will queue the process and do it accordingly!

Hope you got it now!

If you find this information useful, please award points for "correct" or "helpful" Best Regards, Prashanth

View solution in original post

0 Kudos
9 Replies
prashanthbgoud
Enthusiast
Enthusiast
Jump to solution

1 quad core CPU = 4 logical CPUs without hyperthreading

1 quad core CPU = 8 logical CPUs with hyperthreading

So no of LCPUs it support is 160.

You can assign multiple vcpus, if I have 1 quad core CPU, I can assign 4 CPU’s to VM.

If I have 8 slots on the server, 8x4 = 32 CPUs, you can give 32 CPUs to the VM.

Again 1 LCPU can be mapped to multiple VM’s. on single quad core, we can create 4 VM’s with 4 vCPUs.

If you find this information useful, please award points for "correct" or "helpful" Best Regards, Prashanth
THADC
Contributor
Contributor
Jump to solution

thanks. I get the LCPU now, but somehow still unclear from you explanation regarding vCPUs...

0 Kudos
prashanthbgoud
Enthusiast
Enthusiast
Jump to solution

hmm...

okay let me try to explain you.

1LCPU can be pinned to multiple VM's.

if I have 1 quad core CPU, I have 4 LCPUs

I can create multiple VM's like

1) 1 VM with 1 vcpus

2) 1 VM with 2 vcpus

3) 1 VM with 4 vcpus

1st VM will be pinned to 1st LCPU.

2nd VM will be pinned to 2nd, 3rd LCPU.

3rd VM will be pinned to 1,2,3,4 LCPU.

if the cpu reqquest comes from 1st VM and 3rd VM at the same time, then it will queue the process and do it accordingly!

Hope you got it now!

If you find this information useful, please award points for "correct" or "helpful" Best Regards, Prashanth
0 Kudos
vvgirish
Contributor
Contributor
Jump to solution

The virtual CPU or vCPU is the CPU assigned to the VM.

A VM can have upto 32 vCPU.

Max vCPU a host can manage is 2048, total on all the VM.

Sent on my BlackBerry®

TomHowarth
Leadership
Leadership
Jump to solution

SImple Logical CPUs apply to the host hardware and relate to phyical CPU/Cores and Hyperthreaded cores.

example a dual CPU 8 core machine with out hyper threading enabled will show as having 16 logical CPUs where the same machine with Hyperthreading enables will show 32 logical CPUs

vCPU's relate to the Virtual Guests. hence the larger number as we can do pCPU over commit.

example a VM with 4 CPUs will use 4 x vCPU out of the 2048 limit.  as VM with a 2 x  Dual core CPU will also use 4 vCPU out of the 2048 limit

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos
Dennis100
Contributor
Contributor
Jump to solution

That makes sense.  Now how does this relate to VM performance?  Say that I have a host with 24 logical processors (2 sockets w/6 cores each) and I have a single VM with 8 vCPU (2 sockets/4 cores).  Will the VM run using the full hardware capability or will it only use part of the host's CPU capability (2/3?)?

0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

The VM will attempt to run all its processing requirements on a single CPU, that said, there are very few applications in the x86 world of windows that actually utilse all addressable CPU cores or Sockets.

In your case, assuming a fully SMP aware application set, the VM will utilise 8 logical Cores on your physical host. and no more.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos
Dennis100
Contributor
Contributor
Jump to solution

That's what I was starting to realize.  So would it make sense to assign the maximum vCPU to each VM and control those that require greater bandwidth when the host is loaded with the shares feature (poorly named IMHO)?  This is assuming all VMs are fully SMP aware.

0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

Time for the Consultants answer.  it depends, it depends on what is your driving reasons for virtualisating in the first instance, if it is consolidation then no keep your guest lean and mean, if it is portability and these are heavyly utilised machines then yes.

that said,  I would argue that there are very few physical machines that actually utilise the resources that are available to them, especailly CPU.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos