vCPU (virtual CPU)

A vCPU is a virtual processor given to a virtual machine; the hypervisor runs it on one of the server's real threads.

In plain words

When you create a virtual machine you choose how many vCPUs it has. A vCPU is not a physical core. It is a schedule slot: the hypervisor runs the virtual machine's work on whichever physical hardware thread is free, and moves it around as needed. On a server with Hyper-Threading or SMT, each hardware thread can carry a vCPU, so a 2-socket server with 64 cores in total presents 128 threads.

Because virtual machines rarely all work at once, a host can hold more vCPUs than it has threads. This is called overcommitment, and it is what makes consolidation pay. The safe ratio depends entirely on the workloads: idle file servers tolerate a high ratio, while busy databases tolerate almost none. Measure the actual use, not the number you might guess.

Giving a virtual machine more vCPUs is not always faster. Extra vCPUs must be scheduled together, which can make a machine wait for free threads, and a machine with more vCPUs than one NUMA node holds can slow down. Start small, watch the usage, and add only when it is needed.

Licences often count vCPUs or the host's physical cores, depending on the product, so the number you assign can be a cost as well as a performance setting.

Why it matters when you buy a server

Sizing a host starts from the total vCPUs and memory your virtual machines need, then the ratio you can tolerate. Give us the list of machines, their peak use and their software, and we convert it to a processor, core count and memory plan.

Keep reading

Sources: Hypervisor vendors' sizing and licensing documentation.

Related terms

Tell us what the server must run.

An engineer checks the configuration against the manufacturer's specifications and replies with a formal quotation.