Solved

Virtual CPU on VMware

Posted on 2013-11-21
5
889 Views
Last Modified: 2013-11-24
I'm using VMware 5.5 essential kit

For CPU assignment, which one is preferred, increase number of Virtual CPu or core ? What's virtual CPU ? Suppose my physical server has 1 CPU with 16 cores ...

Tks
0
Comment
Question by:AXISHK
5 Comments
 
LVL 9

Assisted Solution

by:Sean
Sean earned 125 total points
ID: 39666229
it is simply a way to distribute resources. i would increase the number of cores before number of vcpu and i never use more vcpu than i have physical cpus. so with your server i would only assign one vcpu and 2 cores or more as needed.
0
 
LVL 22

Assisted Solution

by:Nick Rhode
Nick Rhode earned 125 total points
ID: 39666235
Kind of explains it on a performance level but basically they are the same.

http://frankdenneman.nl/2013/09/18/vcpu-configuration-performance-impact-between-virtual-sockets-and-virtual-cores/

I think it was VMwares way of being nice to Microsoft.  For instance lets say Server 2012.  The license states its valid for 2 sockets (physical processors).  In the virtual world you can assign a bunch of vCPU's or aka virtual sockets.  This way you can still meet the standard for the 2 socket but assign cores to cheat.  It honestly works either way regardless and there is nothing better than the other.
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 125 total points
ID: 39666236
1 vCPU is equal to 1 physical core on the host processor.

Increase vCPUs. (unless you have a core licensing requirement)

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
http://www.vmware.com/resources/techresources/10131

see here
http://www.gabesvirtualworld.com/how-too-many-vcpus-can-negatively-affect-your-performance/

http://www.zdnet.com/virtual-cpus-the-overprovisioning-penalty-of-vcpu-to-pcpu-ratios-4010025185/

also there is a document here about the CPU scheduler

www.vmware.com/files/pdf/perf-vsphere-cpu_scheduler.pdf
0
 
LVL 10

Assisted Solution

by:bluedan
bluedan earned 125 total points
ID: 39667087
Also if the server supports Hyperthreading and its enabled. The logical Processors (vCPUs) will double.

Suppose your physical server has 1 CPU with 16 cores

It is calculated by = 1 x 16 cores = (16 vCPUs x 2 (hyperthreading enabled)) = 32 vCPUs.

On ESXi host Summary, it will display like this:

Processor Sockets:  1
Cores per Sockets:  16
Logical Processors: 32  (vCPUs)
Hyperthreading: Active

Hope this info helps.
0
 

Author Closing Comment

by:AXISHK
ID: 39673852
Tks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

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

17 Experts available now in Live!

Get 1:1 Help Now