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

VM configuration formula related to Socket and Cores

Posted on 2016-09-02
3
89 Views
Last Modified: 2016-09-02
I need to have a better understanding as to how best to configure VMs.

Need to specifically understand  how Number of VIrtual Sockets and Number of Cores per Socket needs to be configured? - What are the things I need to consider. (e.g. ESXi configuration)

Is there some sort of formula or specific guideline, I can follow.
0
Comment
Question by:cgeorgeisaac
  • 2
3 Comments
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 41781612
Summary from the document below...

#1 When creating a virtual machine, by default, vSphere will create as many virtual sockets as you’ve requested vCPUs and the cores per socket is equal to one. I think of this configuration as “wide” and “flat.” This will enable vNUMA to select and present the best virtual NUMA topology to the guest operating system, which will be optimal on the underlying physical topology.

Source

Important Reading here

Does corespersocket Affect Performance?

Allocate as many vCPUs that you require, and if you need to use Cores based on licensing conditions use cores. But the VMware vSphere Default of using vCPU (sockets) is best.

You should have a rough idea, of the server/application requirements.

vSMP (virtual SMP) can affect virtual machine performance, when adding too many vCPUs to virtual machines that cannot use the vCPUs effectively, 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

VMware vSphere: The CPU Scheduler in VMware ESX 4.1

also there is a document here about the CPU schedule

Does corespersocket Affect Performance?

see here also

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/
0
 

Author Comment

by:cgeorgeisaac
ID: 41781678
Great Links. Thanks.
I am not too sure if you want me to open another question, but this is the issue:

We have a machine which has  Win Server 2012 64  which is very slow.

VM Ver 8
CPU: Number of Virtual Socket=4 and Number of Cores per socket = 1. Therefore, Total Number of Cores is 4

Memory 8192 MB
Running  VMTools Out of date (unable to install latest since we have vCenter 6.x)
How could this be fixed.
0
 
LVL 119
ID: 41781725
Best to post a new question, on the issue of a slow VM.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ESXi 4.1.0 host unreachable every morning 1 58
ESXI and proactively monitoring hard drive health? 3 70
VSphere Alerting 1 46
VMware Horizon View Event Database 2 25
If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
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 vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

792 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