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


Tempdb : ONE Data File per cpu


Tempdb : ONE Data File per cpu

Author
Message
lianvh
lianvh
SSC Journeyman
SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)

Group: General Forum Members
Points: 75 Visits: 394
Good Day,
w had an auditing team running Microsoft Assessment on our database servers . This product recommends that the principle of creating ONE datafile per cpu be
deployed on all the SQL Servers regardless of the load on the server . How can Microsoft release a product like this ?
Perry Whittle
Perry Whittle
SSC-Insane
SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)

Group: General Forum Members
Points: 20132 Visits: 17244
The reality is, if you don't have the load then you dont need to it's more a best practice. This has been blogged many times by many different people.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
chandan_jha18
chandan_jha18
SSC Eights!
SSC Eights! (895 reputation)SSC Eights! (895 reputation)SSC Eights! (895 reputation)SSC Eights! (895 reputation)SSC Eights! (895 reputation)SSC Eights! (895 reputation)SSC Eights! (895 reputation)SSC Eights! (895 reputation)

Group: General Forum Members
Points: 895 Visits: 2134
lianvh (9/11/2012)
Good Day,
w had an auditing team running Microsoft Assessment on our database servers . This product recommends that the principle of creating ONE datafile per cpu be
deployed on all the SQL Servers regardless of the load on the server . How can Microsoft release a product like this ?


such advice had appeared from top consultants who work on very big and heavy farms. They suggested to improve the number of files per cpu only after analysing wait statistics and contention GAM and SGAM pages(can't recall exact terminology). We should be careful with what we choose. Read some whitepapers from SQLCAT team, PSSQL team, blogs from Paul Randal,Brent Ozar and analyse what they suggest before we make this implementation in our production servers.

Thanks
Chandan
Waylon
Waylon
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 333
The recommendation is per cpu core and it is also a microsoft recommendation.

http://msdn.microsoft.com/en-us/library/ms175527(v=sql.105).aspx

I'm not entirely sure what you mean by "How can Microsoft release a product like this"... Do you find the recommendation bad in some way? Do you have an objection to creating multiple data files?
anthony.green
anthony.green
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10139 Visits: 6367
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



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger


george sibbald
george sibbald
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10426 Visits: 13687
<sigh> were the auditors dbas?

thats a rather blanket recommendation, and there are lots of other recommendations than one file per core.

The recommendation should be that if you are not using multiple files for tempdb you investigate whether your system would benefit from doing so, as there is a chance it could do. Are you having any performance problems? A system that is not a heavy user of tempdb is unlikely to require it.

---------------------------------------------------------------------
lianvh
lianvh
SSC Journeyman
SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)SSC Journeyman (75 reputation)

Group: General Forum Members
Points: 75 Visits: 394
I am frustrated, because , a consultancy firm used this tool and now to keep the peace we have to implement this setting.
george sibbald
george sibbald
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10426 Visits: 13687
read the blog from paul randal anthony posted and check out the scripts it links to which determine if you have tempdb contention. If you have no latch contention on tempdb allocation pages that is evidence you can present that multiple files will not be required.

If you are forced to do this it may not do any harm but point out it could be unnecessary and the server should be monitored after applying the changes.

---------------------------------------------------------------------
Perry Whittle
Perry Whittle
SSC-Insane
SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)

Group: General Forum Members
Points: 20132 Visits: 17244
The later recommendation is actually files equal to 1\4 - 1\2 the number of CPU cores

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
TheSQLGuru
TheSQLGuru
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12593 Visits: 8560
lianvh (9/11/2012)
I am frustrated, because , a consultancy firm used this tool and now to keep the peace we have to implement this setting.


May I recommend that you find a consultancy that is a) capable of independent thinking and which is up to date on current SQL Server "best practices" and more importantly b) recommends things that are necessary for YOUR ENVIRONMENT to function optimally/correctly and which shows you WHY they make such recommendations using metrics from YOUR system(s)?!?

I happen to know of just such a consultancy, btw. Cool

Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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