Solved

vCPU spec for an VM (application server 2012) running in ESX

Posted on 2015-01-15
4
363 Views
Last Modified: 2015-01-15
Hi Guys,

I am told that too many under-utilised vCPUs in a VM can deteriorate the VM's performance. Could someone conform / deny this? (with some references)

I need to spec a Server 2012 VM (application server) running in an ESX environment. I suggested using 4 x vCPUs, 8gb RAM, and 50Gb/50GB hard drives (available disk space is limited). The application is an MI reporting tool so no heavy processing.  Is 4 vCPUs too many? Would performance really be affected if not all of the vCPUs are utilized?

Any help would be appreciated.

Thanks

M
0
Comment
Question by:mk112233
  • 2
4 Comments
 
LVL 7

Expert Comment

by:DrAtomic
ID: 40550796
Always start with 1 vcpu unless prior performance monitoring has shown you that you'll need more cpu power. See http://www.experts-exchange.com/Software/VMWare/Q_27952182.html and his EE articles.
0
 

Author Comment

by:mk112233
ID: 40550816
So since the OS we are using is Server 2012 x64, the minimum would be 2 x vCPU? or is that not the case with VMs?
0
 
LVL 7

Accepted Solution

by:
DrAtomic earned 250 total points
ID: 40550821
0
 
LVL 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 250 total points
ID: 40550830
I am told that too many under-utilised vCPUs in a VM can deteriorate the VM's performance. Could someone conform / deny this? (with some references)

There is some truth in this.

Without observing the performance of the virtual machine it's difficult to know if you need 2, 4, 8 vCPU.

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

https://blogs.vmware.com/vsphere/2013/10/does-corespersocket-affect-performance.html
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

744 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

16 Experts available now in Live!

Get 1:1 Help Now