Step 1: Determine the total number of vCPUs to allocate to the virtual machine.
To calculate virtual machine CPUs within the vSphere Client, multiply the number of sockets selected by the number of cores selected.Total Number of virtual CPUs (CPU) |
Cores per Socket | Number of Sockets determined by the vSphere Web Client |
---|---|---|
1 | 1 | 1 |
2 | 2 | 1 |
2 | 1 | 2 |
4 | 4 | 1 |
4 | 2 | 2 |
4 | 1 | 4 |
8 | 8 | 1 |
8 | 2 | 4 |
8 | 4 | 2 |
8 | 1 | 8 |
VMware uses the following terminology. Understanding these terms can help plan for CPU resource allocation.
Terminology |
Description |
CPU
|
The CPU, or processor, is the component of a computer system that performs the tasks required for computer applications to run. The CPU is the primary element that performs the computer functions. CPUs contain cores. |
CPU Socket
|
A CPU socket is a physical connector on a computer motherboard that connects to a single physical CPU. Some motherboards have multiple sockets and can connect multiple multicore processors (CPUs). |
Core
|
A core contains a unit containing an L1 cache and functional units needed to run applications. Cores can independently run applications or threads. One or more cores can exist on a single CPU. |
To set the Number of Virtual CPUs in the vSphere Client, refer the Virtual CPU Configuration section of Virtual Machine Administration Guide.
Note: The available options when configuring virtual CPUs within the vSphere Web Client:
Admin guide links:
If using operating systems that were released when SMP was a high-end server-only, adjustments will be needed such as selecting SMP kernel for Linux virtual machines and Multiprocessor PC HAL for Windows virtual machines.