September 26, 2011 at 6:25 am
The tempdb database is located on a SSD disk. Before migration - a SQL Server 2005 SP3 - the avg_read_stall_ms value was 1.2 and avg_write_stall_ms value was 3.9
(These values provided by the DMV sys.dm_io_virtual_file_stats)
After migration on a SQL server 2008 R2, avg_read_stall_ms value value is 1.7 and avg_write_stall_ms 342.0.
I dont understand why write performance in Tempdb is deteriorated.
We tried copying a file to the SSD disk and the transfer rate before and after migration remains the same. It seems that only SQL instance have slowed when writing on tempdb.
Any ideas ?
Thanks.
Sorry for my bad english.
September 26, 2011 at 7:00 am
Phillippe can we review some basic setups first?
What is the default size of tempdb? at startup, by default, it's a piddling 8 meg, and would grow by 1 meg at a time when it needs to grow;
that's not what you want on a production system, and certainly not on a nice fast SSD...you want to change that to a larger startup size.
here's a default installation example:

Lowell
September 26, 2011 at 7:11 am
Of course.
Initial size is 8,192 Mb (data and log), autogrowth 10%.
Recovery model : simple.
Others options are set with default values.
Change tracking is set to false.
The tempsdb is alone on this disk. Others databases are on a SAN.
September 26, 2011 at 7:13 am
Viens-tu du Québec / France?
September 26, 2011 at 7:14 am
Belgique. Je parle français.
September 26, 2011 at 7:16 am
Ok, je vais traduire si tu ne comprends pas.
September 26, 2011 at 7:20 am
Thanks.
September 26, 2011 at 7:56 am
my first recommendatino would be to change that to a larger Initial Size, which depends a lot on how big it is rig now. if it's 2Gig in size right now for example, that would be a good initial size;
that shows that the operations it's done so far made it grow to that size, so you don't want it having to grow a zillion times from 8 meg to 1 Gig when it doesn't need to; that impacts perforamance.
what is tempdb's current size?
Lowell
September 26, 2011 at 8:12 am
Sorry, the initial size is 8 GB (8,192 Mb and not 8.192 Mb as i mentionned). My initial post was wrong, i've correct it.
The actual size is now 14.512 GB. The first time the tempdb reaches this size was during a full recalculation of statistics, next night the server was migrated.
Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply