March 23, 2018 at 2:00 pm
Hi,
Please suggest to configure tempdb files in SQLserver2016 Enterprise edition.
cpu_count is 96.
current tempdb files are 24
is it good configuration ?
do i need to add more tempdb files ?
Thanks
March 23, 2018 at 2:24 pm
To be honest, I wouldn't configure more than 8 without some evidence of allocation contention. The only time I'd have 24, is if, with 20 files, there was still evidence of severe allocation contention.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 23, 2018 at 7:24 pm
Review the following articles:
https://www.brentozar.com/archive/2016/01/cheat-sheet-how-to-configure-tempdb-for-microsoft-sql-server/
https://www.sqlskills.com/blogs/paul/a-sql-server-dba-myth-a-day-1230-tempdb-should-always-have-one-data-file-per-processor-core/
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
March 26, 2018 at 6:04 am
GilaMonster - Friday, March 23, 2018 2:24 PMTo be honest, I wouldn't configure more than 8 without some evidence of allocation contention. The only time I'd have 24, is if, with 20 files, there was still evidence of severe allocation contention.
+1
although, I wouldn't even use 8, probably 2 - 4 and if there's evidence of contention then increase it
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
March 26, 2018 at 7:33 am
Perry Whittle - Monday, March 26, 2018 6:04 AMGilaMonster - Friday, March 23, 2018 2:24 PMTo be honest, I wouldn't configure more than 8 without some evidence of allocation contention. The only time I'd have 24, is if, with 20 files, there was still evidence of severe allocation contention.+1
although, I wouldn't even use 8, probably 2 - 4 and if there's evidence of contention then increase it
+1
I'll also add that a whole lot of contention in TempDB can actually be (and should be) fixed by finding and fixing problems in code.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2018 at 8:03 am
Jeff Moden - Monday, March 26, 2018 7:33 AMPerry Whittle - Monday, March 26, 2018 6:04 AMGilaMonster - Friday, March 23, 2018 2:24 PMTo be honest, I wouldn't configure more than 8 without some evidence of allocation contention. The only time I'd have 24, is if, with 20 files, there was still evidence of severe allocation contention.+1
although, I wouldn't even use 8, probably 2 - 4 and if there's evidence of contention then increase it+1
I'll also add that a whole lot of contention in TempDB can actually be (and should be) fixed by finding and fixing problems in code.
I concur Jeff, fix the root of the issue rather than putting sticky plaster over it
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
March 26, 2018 at 9:23 am
Perry Whittle - Monday, March 26, 2018 6:04 AMGilaMonster - Friday, March 23, 2018 2:24 PMTo be honest, I wouldn't configure more than 8 without some evidence of allocation contention. The only time I'd have 24, is if, with 20 files, there was still evidence of severe allocation contention.+1
although, I wouldn't even use 8, probably 2 - 4 and if there's evidence of contention then increase it
I usually go for 4 as a default, because that's not likely to cause problems with too many files, and it'll pretty much remove any chance of contention showing up except in extreme cases, which get addressed on a case-by-case basis.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply