SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


TempDB optimization


TempDB optimization

Author
Message
Zeal-DBA
Zeal-DBA
Old Hand
Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)

Group: General Forum Members
Points: 345 Visits: 1125
hello,

in ma current configuration i have one data file and one log file of a tempdb database.
as a process of tempdb optimization i am going to add 16 Data files for tempdb database because in ma server i have 16 CPUs available and getting tempdb contention issues.

just want to know the prerequisite and postrequisite of adding multiple datafiles for tempdb.
Zeal-DBA
Zeal-DBA
Old Hand
Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)

Group: General Forum Members
Points: 345 Visits: 1125
and please provide any guidelines on this to add number secondary data files and initial size of each file..?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (90K reputation)SSC Guru (90K reputation)SSC Guru (90K reputation)SSC Guru (90K reputation)SSC Guru (90K reputation)SSC Guru (90K reputation)SSC Guru (90K reputation)SSC Guru (90K reputation)

Group: General Forum Members
Points: 90985 Visits: 45284
http://www.sqlskills.com/BLOGS/PAUL/post/A-SQL-Server-DBA-myth-a-day-%281230%29-tempdb-should-always-have-one-data-file-per-processor-core.aspx
http://technet.microsoft.com/library/Cc966545
http://www.sqlskills.com/blogs/paul/category/tempdb/

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


TheSQLGuru
TheSQLGuru
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13055 Visits: 8566
Zeal-DBA (2/27/2013)
hello,

in ma current configuration i have one data file and one log file of a tempdb database.
as a process of tempdb optimization i am going to add 16 Data files for tempdb database because in ma server i have 16 CPUs available and getting tempdb contention issues.

just want to know the prerequisite and postrequisite of adding multiple datafiles for tempdb.


What type of "contention" are you getting? Is IO slow, or are you getting PFS/SGAM latching issues due to high rate of temp object creation? If it is the former, adding files may not make IO faster, and can in fact make it SLOWER. If the latter, I would look at the code hitting the box and see if there are unnecessary temp objects to be found. I have had more than a few clients over the years that excessively and unnecessarily used temp tables/variables. One actually had at least one table variable in about 80% of their 2000+ sprocs!!

Gail provided some good links for you. Read them carefully, and best of luck!

Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
Meet George Jetson
Meet George Jetson
SSCrazy
SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)

Group: General Forum Members
Points: 2970 Visits: 1395
Paul Randal may explain it better than anyone else

[url=http://www.sqlskills.com/blogs/paul/a-sql-server-dba-myth-a-day-1230-tempdb-should-always-have-one-data-file-per-processor-core/][/url]

Chris Powell

George: You're kidding.
Elroy: Nope.
George: Then lie to me and say you're kidding.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search