Solved

VMWare, vCPU allocation for VM

Posted on 2012-03-17
4
788 Views
Last Modified: 2012-03-17
If I have a 16 core server, and I allocate only a single VM, and that VM is only allocated 8 vCPU, ......

... will that VM run with only 8 cores, or will VMWare detect that more cores are available and steal cores and give it to the VM, therefor that VM is running with more than 8 cores ?

Thanks
0
Comment
Question by:Los Angeles1
  • 2
4 Comments
 
LVL 40

Expert Comment

by:coolsport00
ID: 37733534
The VM will use what it needs at any given time. Unless you use 'CPU affinity', which is a config for a VM to use explicit CPUs, the VM will use whatever is available at any time when the VM needs compute resources. I highly recommend reading over the CPU Scheduler whitepaper:
http://www.vmware.com/files/pdf/techpaper/VMW_vSphere41_cpu_schedule_ESX.pdf

~coolsport00
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 37733547
if you have allocated 8 vCPU.

8 vCPU = 8 physical cores on the physical host. in simple terms.

It will never run with more than 8vCPUs.

What license do you have?

because the license will limit you to a max of 8 vCPUs!
0
 

Author Comment

by:Los Angeles1
ID: 37733598
Do the 2 posts above disagree.  The first says the scheduler will use whatever it needs, (so I assume that the VM will use extra cores that are not being utilized, even if it exceeds the limit of vCPU assigned to it)  the second says 8 vCPu means only 8 physical cores.

Am I misunderstanding your answers (I know you both generally agree, so I must misunderstand something)
0
 
LVL 118
ID: 37733608
if you assign 8vCPUs, the hypervisor WILL ONLY ever execute your VM on 8 Cores.

(they may not be the same cores, through the process of the execution!)

e.g. the scheduler looks at ALL cores every 20ms, you VM may run on the same 8 Cores, or it could change to another 8 Cores, but by defination of 8vCPUs, it will never be more than this.

AND, if you do not have a license to use 32 vCPUs, license restricts you to 8 Way SMP.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VMware - Snapshots from cloned VM 1 54
2 VGA on VM 3 40
Changing ESXi Path Selection Policy implications and caveats ? 4 66
VMware Workstation 12 Player 16 36
It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now