Solved

VMware CPU configurations

Posted on 2014-04-22
10
456 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 117

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 117
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
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…

708 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

14 Experts available now in Live!

Get 1:1 Help Now