Solved

Assigning Virtual CPU settings VMware 5.1

Posted on 2014-12-26
3
396 Views
Last Modified: 2015-01-05
I am trying to assign virtual cpu settings in VMWare 5.1 I don't know why but can't get my head around the settings.

I have a 2 X quad core HP DL380 G5 server and I have a SBS2003 virtual machine

How should I configure the cpu settings

Number of virtual sockets and
Number of cores per socket.

I just am not sure what setting relates to the physical sockets

I assume 2 physical CPUs and 8 cores (being quad core each) is this correct


Thanks
0
Comment
Question by:cdsaus
3 Comments
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 400 total points
ID: 40518390
Always ASSIGN virtual sockets! for you SBS server I would assign at least 2 vCPU or 4 vCPU.

1 vCPU = approx 1 physical core on the host!

(only assign Cores in the VM, if you have a license restriction on cores!)

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
 
LVL 62

Assisted Solution

by:gheist
gheist earned 100 total points
ID: 40519081
Virtual cores are to get around licencings in some software (e.g you might want to buy 2-core licence of CAD software, so you must make sure it gets you right.

Flying to land of 5.5 -> virtual core setting also causes problems with vNUMA unless it is 1:1 match to hardware.
0
 

Author Closing Comment

by:cdsaus
ID: 40531187
Thanks for information, it has solved my problem and given me a greater insight. Great links to information
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMware SRM - Datastore not showing in Array Replication 11 115
Migrating a Linux server to VMware 3 103
time esx vm's to reboot 4 55
VAAI  technology 2 57
If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
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…

680 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