Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Setting the number of cores per CPU in a virtual machine (1010184)

Last Updated: 3/21/2024Categories: How toTotal Views: 246795Language:
English

202 like this article

Subscribe to get an email
newsletter with new updates

202 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Purpose

This article provides information on setting number of cores per CPU in a virtual machine.

Resolution

Important:

You can add, change, or configure CPU resources to improve virtual machine performance.

Most of the CPU parameters can be set when you create virtual machines or after the guest operating system is installed.

Some actions require that you power off the virtual machine before you change the settings.

For more information on maximum CPUs allowed, see vSphere Configuration Limits.

Prerequisites:

If CPU hot add is not enabled, turn off the virtual machine before adding CPUs.

To hot add multicore CPUs, verify that the virtual machine compatibility is ESXi 5.0 and later.

Required privilege: Virtual Machine > Configuration > Change CPU Count on the virtual machine

Procedure to set the number of cores per CPU in a VM:

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.
This table provides the examples of socket determination based on CPU and Cores per Socket within the vSphere Web Client:

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

Step 2: Set the number of vCPUs.

Login to the vSphere Web Client and select the virtual machine in question.

Right-click on the virtual machine and select Edit Settings.

Under the CPU field within the Virtual Hardware tab, select the total number of vCPUs determined in Step 1.

Under the Core per Socket field, enter the total number of cores you would like to allocate to a socket. See illustration below:

Related Information

Understanding the terminologies

VMware uses the following terminology. Understanding these terms can help you plan your strategy 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.

Setting the Number of Virtual CPUs in the vSphere Client

To set the Number of Virtual CPUs in the vSphere Client, refer the Virtual CPU Configuration section of Virtual Machine Administration Guide.

Notes: When configuring virtual CPUs within the vSphere Web Client, you can configure:

The total number of vCPUs for the virtual machine

The total number of Cores per Socket

Admin guide links:

ESXi 7.0 - Change the Number of Virtual CPUs

ESXi 6.7 - Change the Number of Virtual CPUs in the VMware Host Client

ESXi 6.5 - Change the Number of Virtual CPUs in the VMware Host Client

ESXi 5.5 - Change the Number of Virtual CPUs in the VMware Host Client

ESXi 5.1 - Change the Number of Virtual CPUs in the VMware Host Client

ESXi 5.0 - Change the Number of Virtual CPUs in the VMware Host Client

Tweaks to consider when you are using older Guest OS versions:

If you are using operating systems that were released when SMP was a high-end server-only, you expect that you need to do some tweaks such as selecting SMP kernel for Linux virtual machines and Multiprocessor PC HAL for Windows virtual machines.

Note: You do not encounter problems with recent operating systems. XP and newer and RHEL5 and newer either always install SMP kernel or automatically switch to it.

Some examples of the older operating system versions are:

RHel3-ES32

RHel3-ES64

RHel4.8-AS32

RHel4.7-ES32

RHel4.7-ES64

Win2000-Pro

Win2000-Serv

Notes:

In vSphere 5.0 with Enterprise Plus Licensing and Virtual Machine Hardware Version 8, the maximum number of vCPUs per Virtual Machine is 32.

In vSphere 5.0 with Virtual Machine Hardware Version 7, the maximum number of vCPUs per Virtual Machine is 8.

For more information on maximum CPUs allowed, see vSphere 5.0 Configuration Maximums.

Best Practices

Performance Best Practices for VMware vSphere 6.7 - https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/performance/vsphere-esxi-vcenter-server-67-performance-best-practices.pdf

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware vCenter Server

Related Versions:

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vCenter Server 7.0.x

VMware vCenter Server 6.7.x

VMware vCenter Server 6.5.x

VMware vCenter Server 6.0.x

VMware vCenter Server 5.5.x

VMware vCenter Server 5.1.x

VMware vCenter Server 5.0.x

VMware vCenter Server 4.1.x

view all

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant