Solved

Average/Maximum Read/Write I/O Waits for tables

Posted on 2014-09-26
6
82 Views
Last Modified: 2014-09-30
Hello,

How can I collect Average/Maximum Read/Write I/O Waits for tables in db sql server?
Thanks
0
Comment
Question by:bibi92
  • 4
  • 2
6 Comments
 
LVL 46

Expert Comment

by:Vitor Montalvão
ID: 40345915
You can query the performance counters dmv:
SELECT * 
FROM sys.dm_os_performance_counters
WHERE counter_name LIKE '%IO wait%'
   OR counter_name LIKE 'write%'
   OR counter_name LIKE '%reads%'

Open in new window

0
 
LVL 46

Expert Comment

by:Vitor Montalvão
ID: 40345922
Or if you are talking only in disk thresholds, then check if this query is what you want:
SELECT * FROM sys.dm_io_virtual_file_stats(default, default)

Open in new window

0
 

Author Comment

by:bibi92
ID: 40348444
Hello,

I search the IO wait on tables.

Thanks

Regards
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 46

Expert Comment

by:Vitor Montalvão
ID: 40349445
For that you have the sys.dm_os_wait_stats view.
Here the MSDN article about that view and information about all the wait types.
0
 

Author Comment

by:bibi92
ID: 40350354
Ok thanks but I have not found how I can check io waits per tables.
0
 
LVL 46

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 40351629
You need to understand the wait types so you can know which ones are you looking for.
Paul Randal's made a survey and he compiled the results of the most worrying wait type. You can start with those ones that are more typical for bottleneck issues.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now