SQL server 2012 Standard in Vmware


SQL 2012 standard supports 16 cores.  I was wondering what would be the best configuration in vmware to setup if I wanted this.

Would I do 4 sockets + core 4 cores as the sql configuration for best performance?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
If you are not bound by licensing issues you can go the route you suggest (4 sockets + 4 core), if licensing is an issue, you're better off using less sockets and more cores ...  If you wanted this of course.

Always start "small" and monitor performance, then add sockets/cores when needed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sajid Shaik MSr. System AdminCommented:
Spravtek is right...
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Just assign sockets....

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

see here


also there is a document here about the CPU scheduler


ts11Author Commented:

Originally I had assigned just sockets, but this SQL version will only run on 4 sockets and I was running into performance issues.  I then assigned 2 sockets and 4 cores per sockets and was seeing a performance gain with that, but after 6 months on that configuration I'm seeing some performance issues at peak load times.

I'll read these articles and experiment some as well.
More processors do not essentially mean it will perform better.
1) many queries do not involve many tables , so they dont paralleleize at all
2) even paralellized the slowest sub-query determines overall time spent
More CPUs are needed if you really have lots of parallel queries that saturate say 2 vCPUs...
With more expensive vmware editions you can hot-plug vCPUs on the fly, (Windows and SQL server supports it). At least enable the option in case you get better licence in future.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.