VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
3 Replies Last post: May 23, 2008 11:50 AM by drummonds  

Does the number of VCPUS relate to the Virtual SMP support provided by VMWare posted: May 22, 2008 12:29 AM

Click to view srimini's profile Novice 27 posts since
Apr 23, 2008

Thanks for the response.still am not clear with the VCPU concept.i saw in a document that VMware provides four way Virtual SMP support.how does that put a constraint on the VCPUS.how it relates to the number of physical processor available on the server.

for ex,if suppose i have a server with dual core processor,then can i have four way VSMP support on the server.in that case what is the number of VCPUS?

And can someone explain what is the logic behind the concept of VSMP and VCPU. Thanks in Advance.


Click to view Dave.Mishchenko's profile Guru 8,974 posts since
Nov 15, 2005
With vSMP you can run a VM with 1, 2 or 4 virtual CPUs (vCPU). When ESX schedules a CPU cycle for a VM, it has to find the same number of free physical CPU cores as there are vCPUs the VM. So for a 2 vCPU VM, ESX would have to find two free CPU cores and for a 4 vCPU VM ESX would find 4 free physical CPU cores. So to answer your one questions, you would require a server with at least 4 physical CPU cores to run a 4 vCPU VM.

So for vSMP each vCPU will execute on a seperate physical CPU core and those CPU cores must be free at the same time for the VM to get a CPU cycle. Here's a good paper to read through on the topic - http://www.vmware.com/pdf/vsmp_best_practices.pdf
Click to view oreeh's profile Guru 9,872 posts since
Nov 30, 2005
for ex,if suppose i have a server with dual core processor,then can i have four way VSMP support on the server.

With only one dual-core CPU in the ESX hosts you can only use two way vSMP. But that wouldn't work well for the reasons Dave already mentioned.

in that case what is the number of VCPUS?

The number of vCPUs itself is related to the number of physical cores in the following way (from the Configuration maximums pdf):
Number of virtual CPUs per server: 128
Number of virtual CPUs per core: 8 (11 with VDI)

Therefore with two cores in the host you have a maximum of 16 vCPUs.
Click to view drummonds's profile Hot Shot 112 posts since
May 31, 2007
Also note that we recently published Co-scheduling SMP VMs in VMware ESX Server detailing the relaxation of the co-scheduling requirement you mentioned.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities