Solved

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

Posted on 2014-09-26
6
81 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 45

Expert Comment

by:Vitor Montalvão
Comment Utility
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 45

Expert Comment

by:Vitor Montalvão
Comment Utility
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
Comment Utility
Hello,

I search the IO wait on tables.

Thanks

Regards
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
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
Comment Utility
Ok thanks but I have not found how I can check io waits per tables.
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
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

744 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

8 Experts available now in Live!

Get 1:1 Help Now