Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 IO stalls .. help !

Author  Topic 

Simon_L
Starting Member

32 Posts

Posted - 2009-06-16 : 07:53:21
Hi All

in the ms white paper on Waits & Queues there is a query to determine avg i.o stalls

If Im running this over a single disc box is there any "ballpark figures" for average amount of stalls per read and write I should be aware of ?

many thanks

simon

--avg stalls per read/write
select
[name],
database_id,
filetype = case sys.database_files.type
when 1 then 'Log'
when 0 then 'Data'
end,
io_stall_read_ms,
num_of_reads,
cast (io_stall_read_ms/(1.0+num_of_reads) as numeric (10,1)) as 'avg_read_stall_ms',
io_stall_write_ms,
num_of_writes,
cast (io_stall_write_ms/(1.0+num_of_writes) as numeric (10,1)) as 'avg_write_stall_ms',
io_stall_write_ms+num_of_writes as io_stalls ,
num_of_reads+num_of_writes as total_io,
cast(io_stall_read_ms+io_stall_write_ms/(1.0+num_of_reads+num_of_writes) as numeric (10,1)) as 'avg_io_stall_ms'
from sys.dm_io_virtual_file_stats (11,FILE_IDEX(11))
join sys.database_files
on sys.dm_io_virtual_file_stats .file_id = sys.database_files.file_id
order by avg_io_stall_ms desc
go

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-16 : 08:06:07
This Best Practices Article might give you some answers
http://download.microsoft.com/download/4/7/a/47a548b9-249e-484c-abd7-29f31282b04d/Performance_Tuning_Waits_Queues.doc



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Simon_L
Starting Member

32 Posts

Posted - 2009-06-16 : 08:50:57
quote:
Originally posted by Peso

This Best Practices Article might give you some answers
http://download.microsoft.com/download/4/7/a/47a548b9-249e-484c-abd7-29f31282b04d/Performance_Tuning_Waits_Queues.doc



E 12°55'05.63"
N 56°04'39.26"




thats the "the ms white paper on Waits & Queues there is a query to determine avg i.o stalls" I refer to !!

it mentions look out for high or average figures but gives no ball park as to what they might be !
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-16 : 08:58:35
I can think there is no "ball park" figure.
It heavily depends on what kind of disks you are using, spindles, SAN, NAS and other layers.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -