Skip to content

Commit

Permalink
Updated MaxDOP Calculation again 🌊
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored Oct 31, 2023
1 parent 41f49ab commit 9b4a51e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SQL Queries/maxdop_calculator.sql
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ BEGIN
SET @RecommendedMaxDop = @LogicalCPUsPerNumaNode;
ELSE
SET @RecommendedMaxDop = @LogicalCPUsPerNumaNode / 2;

-- Ensure the MAXDOP does not exceed half the number of logical CPUs per NUMA node
IF @RecommendedMaxDop > @LogicalCPUsPerNumaNode / 2
SET @RecommendedMaxDop = @LogicalCPUsPerNumaNode / 2;
END

-- Define a table variable to store the results
Expand Down

0 comments on commit 9b4a51e

Please sign in to comment.