VM's and core processors

Posted on 2014-08-28
Medium Priority
Last Modified: 2014-08-29
If you have an ESXI host with 2 physical processors 6 cores on each so a total of 12 cores. Does each VM on the host essentially utilise all 12 cores. For software licensing exercises it is based on cores (SQL Server). So from the outset if a VM running the SQL Server software is hosted by an ESXi with 12 cores then presumably you need 12 core licences. But I wasnt sure if VM's can be configured to only use say 4 or 6 of the cores on the host, therefore reducing the number of core licences required.
Question by:pma111

Author Comment

ID: 40290482
also when designing your environment, if you have say 4 hosts each with 12 cores. If you even install SQL on one VM run by each of these hosts, for example, does that then mean you need 48 core licences - 12 for each VM running SQL on 4 hosts. Would it not be better to only run each SQL VM on the same host thus reducing the number of core liscences required down from 48 to 12? i.e. run all 4 SQL VM's on one host with 12 cores. As opposed 1 SQL VM on 4 hosts each with 12 cores.
LVL 124

Accepted Solution

Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 40290495
The hypervisor, will scheduled workload, across all 12 cores in the physical host, every millisecond (or less!).

So yes, it will use ALL the cores, but not all at the same time..... CPU time slicing...

It depends on how you setup the VM, which could be by Sockets or Cores.

Yes, they can be configured to use Cores for licensing requirements, you can set Cores.

vSMP (virtual SMP) can affect virtual machine performance, when adding too many vCPUs to virtual machines that cannot use the vCPUs effectly, e.g. Servers than can use vSMP correctly :- SQL Server, Exchange Server.

This is true, many VMware Administrators, think adding lots of processors, will increase performance - wrong! (and because they can, they just go silly!). Sometimes there is confusion between cores and processors. But what we are adding is additional processors in the virtual machine.

So 4 vCPU, to the VM is a 4 Way SMP (Quad Processor Server), if you have Enterprise Plus license you can add 8, (and only if you have the correct OS License will the OS recognise them all).

If applications, can take advantage e.g. Exchange, SQL, adding additional processors, can/may increase performance.

So usual rule of thumb is try 1 vCPU, then try 2 vCPU, knock back to 1 vCPU if performance is affected. and only use vSMP if the VM can take advantage.

Example, VM with 4 vCPUs allocated!

My simple laymans explaination of the "scheduler!"

As you have assigned 4 vCPUs, to this VM, the VMware scheulder, has to wait until 4 cores are free and available, to do this, it has to pause the first cores, until the 4th is available, during this timeframe, the paused cores are not available for processes, this is my simplistic view, but bottom line is adding more vCPUs to a VM, may not give you the performance benefits you think, unless the VM, it's applications are optimised for additional vCPUs.

See here

see here


also there is a document here about the CPU scheduler



I'll shall refer you to the Microsoft SQL 2012 Licensing Guide


All cores running the Virtual Machine must be licensed.

Featured Post

Cyber Threats to Small Businesses (Part 1)

This past May, Webroot surveyed more than 600 IT decision-makers at medium-sized companies to see how these small businesses perceived new threats facing their organizations.  Read what Webroot CISO, Gary Hayslip, has to say about the survey in part 1 of this 2-part blog series.

Question has a verified solution.

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

When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Suggested Courses

862 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