Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

adding a 2nd Tempdb file. Expand / Collapse
Author
Message
Posted Wednesday, May 1, 2013 2:48 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 7:09 AM
Points: 231, Visits: 908
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 ?
Post #1448347
Posted Wednesday, May 1, 2013 8:30 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 3:49 PM
Points: 5,971, Visits: 12,861
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.


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

Post #1448439
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse