Solved

VMware CPU configurations

Posted on 2014-04-22
10
461 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 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 118
ID: 40015984
That's correct.

If you want 4 vCPU, just assign 4 sockets.
0
 

Author Comment

by:rakkad
ID: 40016110
So how do I determine when to use cores section ?
0
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.

 
LVL 118
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 118
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 118
ID: 40055039
If the Answer was helpful, please Assign points.
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

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
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.
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…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

930 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

12 Experts available now in Live!

Get 1:1 Help Now