Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Virtual CPU on VMware

Posted on 2013-11-21
5
892 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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…

856 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