Solved

VMware CPU configurations

Posted on 2014-04-22
10
464 Views
Last Modified: 2014-05-12
I am a bit confused with the terms:-

Number of virtual sockets

Number of cores per socket

Can you explain what these mean ? How should I do use these configurations, if I have a server which needs to have 4 cores, how should I configure these options ?

Thanks
0
Comment
Question by:rakkad
  • 5
  • 4
10 Comments
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40015600
When creating a virtual machine, the best thing to do is ignore cores unless you have a specific licensing requirement with the OS or Application.

So, that leaves allocating sockets, e.g. virtual CPUs per Virtual Machine.

I would always start with a single vCPU, per VM, and increase if you require more performance. Very few VMs need more than 2 or 4 vCPUs.

Also not, that adding many vCPUs per VM, can cause a VM to run more slowly.

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
 

Author Comment

by:rakkad
ID: 40015968
Thanks for your comments, but still unsure
I would like to know the two sections listed above and what they actually mean ?

So a VM with 4vCPU would I assign it as:- 4 for virtual sockets and 1 core ?
0
 
LVL 119
ID: 40015984
That's correct.

If you want 4 vCPU, just assign 4 sockets.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:rakkad
ID: 40016110
So how do I determine when to use cores section ?
0
 
LVL 119
ID: 40016311
If you have a specific license requirement, where the software you are using is restricted to cores,

see here also

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

Author Comment

by:rakkad
ID: 40021315
I have had a request to setup a VM which has 8 cores, could this be mis-leading as does it really need to be 8 virtual sockets and 1 core ?

If I was to set it up as 1 virtual socket and 8 cores, what performance impact would this have on the VM guest, other VM guests in the host and how would the vCPU be presented in the VM ?

If setting a VM guest is using more cores and using virtual sockets is this best practice ?

Thanks
0
 
LVL 119
ID: 40021939
If you've had a VM request to setup 8 Cores, usually that's interpreted as 8 vCPUs!

(which = 8 physical cores on the host processor!)

It's the same.

but also read this:-

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

Personally, I would setup 8 Sockets!

In the VM, you would have a VM, with 8 CPUS!
0
 

Author Comment

by:rakkad
ID: 40055038
I've requested that this question be closed as follows:

Accepted answer: 0 points for rakkad's comment #a40015968

for the following reason:

This provided a good background information
0
 
LVL 119
ID: 40055039
If the Answer was helpful, please Assign points.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
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 install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

770 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