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


adding a 2nd Tempdb file.


adding a 2nd Tempdb file.

Author
Message
PearlJammer1
PearlJammer1
SSChasing Mays
SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)

Group: General Forum Members
Points: 640 Visits: 1443
Hi
I am considering adding a secondary tempdb file to my datawarehouse to hopefully improve performance. I am aware that I have to size this secondary file to the same size of the primary file so i get proportional fill going on.
when i run a query to get the current size of the tempdb file it returns 40159.50mb / percent used 0.02 and templog is 250mb /percent used 41.61
When i view tempdb via ssms and click properties then look at the files from there it says "Initial size 22669 mb" autogrow by 10% unrestricted.
So what size should my new secondary be ? the size returned by the query or the size returned by the /properties files view in ssms

Also am i correct in saying i dont need to create a transaction log file for this new tempdb file ?
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: 10294 Visits: 13687
PearlJammer1 (5/1/2013)
Hi
I am considering adding a secondary tempdb file to my datawarehouse to hopefully improve performance. I am aware that I have to size this secondary file to the same size of the primary file so i get proportional fill going on.
when i run a query to get the current size of the tempdb file it returns 40159.50mb / percent used 0.02 and templog is 250mb /percent used 41.61
When i view tempdb via ssms and click properties then look at the files from there it says "Initial size 22669 mb" autogrow by 10% unrestricted.
So what size should my new secondary be ? the size returned by the query or the size returned by the /properties files view in ssms

Also am i correct in saying i dont need to create a transaction log file for this new tempdb file ?


the size returned by the query - well sort of. SSMS returns the initial size, i.e. the size it is created at on restart, it does not record any file growth. the query returns its current size but of course it wont be that size on restart.

as you now know your tempdb grows to 40GB or so (presuming SQL has been running for a while), ideally restart SQL, immediately grow the first data file to 20GB, then add a second of the same size. Increase the log to 250mb. Set autogrow to sensible MB values.

You only ever need one transaction log.

---------------------------------------------------------------------
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