September 25, 2013 at 8:00 am
No one here will be able to tell you what size your tempdb should be, if you have an ample amount of space on your drive or even better a dedicated drive \ mount point just set tempdb to a certain size (split across the number of data files you have chosen) and don't look back.
If you are restricted then start off with 4 1GB files + the log file, if you experience aggressive growth then you can change the size accordingly.
September 27, 2013 at 4:11 am
HI !
As per my knowledge we cannot add .mdf files to tempdb database.just we can take only log backup's to reduce the size of databse
September 27, 2013 at 4:22 am
shyamalarakesh (9/27/2013)
HI !As per my knowledge we cannot add .mdf files to tempdb database.just we can take only log backup's to reduce the size of databse
Unfortunately, your knowledge is wrong on three counts. First, you can add files to tempdb. Second, you can't take log backups (or any backups) of tempdb. Third, even if you could, it wouldn't reduce the size of the database.
John
September 30, 2013 at 9:02 am
I have a tendency to over provision TEMPDB. For a machine that has 16 cores or less I will create 1 file per core. Over 16 cores I will simply create somewhat larger individual files, using cores/2 or cores/4 for the number of files. I've allocated as little as 1mb per file to as much as 6mb per file depending on transaction load (or at least anticipated).
I will say this I have never had any latency issues with tempdb.
One thing I did have to do was modify at least 6 Sql Server boxes to move tempdb. By default the installer puts tempdb on the C: drive. I've had 2 server crashes shortly after I started and in both cases tempdb was on the C: drive and the C: drive ran out of room.
Today I've got the operations team allocating me 2 separate drives on separate LUNs for my tempdb set as RAID 1/0 on all new SQL Server instances.
Life is good.
Kurt
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
Viewing 4 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply