3

I was going through MS documentation reg: setting MAXDOP starting SQL2016 as that Automatic soft NUMA enabled by default and getting confused on how to make the changes to current SQ2014 and SQL2012 versions:

MSDN link-- https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-configuration-option?view=sql-server-2017#Guidelines

Current SQL2012/2014 setup:

Logically Processors =80
Numa Node=4
Physical RAM= 512GB
MAXDOP=8 and CTOP=5
HyperThreading enabled ='True'

So whats the change after moving them to SQL2016 and above? Will MAXDOP of current setup does not hold any more and needs to tune ? if yes what is MS proposing?

Please share your experiences on setting this up.

3

With Hyperthreading enabled, you currently have 4 hard NUMA nodes with 10 physical cores and 20 logical cores each. On SQL Server 2012 and 2014 you will have 4 matching soft NUMA nodes with 20 logical cores each.

Upon upgrading to SQL Server 2016 or higher, auto soft NUMA will automatically kick in. You'll now have 2 soft NUMA nodes per hard NUMA node for a total of 8. The soft NUMA nodes will stripe across even and odd CPUs per hard NUMA node. For example, soft NUMA node 0 might contain schedulers 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 and soft NUMA node 1 might contain schedulers 1, 3, 5, 7, 9, 11, 13, 15, 17, 19.

The blog post that you referenced is difficult to understand, but I believe you are meant to fall under the "Server with multiple NUMA nodes" category (you have 4) and the "Greater than 16 logical processors per NUMA node" category (you have 20). The recommendation as a result is "Keep MAXDOP at half the number of logical processors per NUMA node with a MAX value of 16", so Microsoft is recommending that you change MAXDOP to 10.

That doesn't match my experience with large servers. I would leave MAXDOP set to 8 unless you run into some kind of issue. IMO changing it from 8 to 10 in your scenario isn't meaningful and is just introducing a new change without a clear benefit. I blogged about how I disagree with the published guidance here.

  • I totally agree with your blog post there as it had me wonder about same. Thanks so much for clarifying that out. Also i came across another blog post of yours orderbyselectnull.com/2018/04/17/… . The query to get idea for parallel work distribution seems not to be working for 2016. Do you have any alternative for that ? Apart from that appreciate your answer :) – BeginnerDBA Sep 13 '19 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.