VMware Cloud Community
vmnewbie34
Contributor
Contributor

How are vcpus shared between VM

How does vcpus are shared between VMs. . If i have 8 vcpus and i have allocated 4 each to two VMs, does it mean that the VMs will not use more than 4 vcpus when  the other VM does not use its allocated vcpus

Message was edited by: a.p. - changed topic from "Need help for this newbie" to s.th. more descriptive.

0 Kudos
2 Replies
abhilashhb
VMware Employee
VMware Employee

How it works is, You will have multiple cores on your server. Take for example a Quad-core. When you have 4vCPU's given to two machines, each machine will actually see 4 logical cores but they are all scheduled to run on the underlying physical cores. So if you allocated 8vCPU's a quad core they will all share the underlying physical cores to run their threads. So to answer your question, yes, if you have a machine that is not using its CPU then the other machine which is scheduled to run on the same physical core will use the CPU.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
a_p_
Leadership
Leadership

Welcome to the Community,

please take a look at http://www.vmware.com/files/pdf/techpaper/VMware-vSphere-CPU-Sched-Perf.pdf, which explains this in detail.

André

PS: Discussion moved from Community Website Help to vMotion & Resource Management

0 Kudos