Solved

sys.dm_io_virtual_file_stats on SQL Server

Posted on 2014-01-17
2
664 Views
Last Modified: 2014-01-17
Base on the attach result for IO query, how can it tell whether my server has I/O issue or not ? Tks

SELECT
cast(DB_Name(a.database_id) as varchar) as Database_name,
b.physical_name, *
FROM  
sys.dm_io_virtual_file_stats(null, null) a
INNER JOIN sys.master_files b ON a.database_id = b.database_id and a.file_id = b.file_id
ORDER BY Database_Name
SQL-IO-View.png
0
Comment
Question by:AXISHK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
PadawanDBA earned 500 total points
ID: 39789055
You're going to need to create a baseline and monitor the growth of the different pieces (the stall times as you have noted).  These are cumulative since the last server restart, so if you had a huge IO issue that caused all of those waits, you're still going to see them and they're going to skew your opinion.  Monitoring the growth of these stats on a periodic basis is going to give you a much better of: if you have an issue and when you have an issue.  With the knowledge of when you are having an issue (if you are), you are going to have a much better idea of what is going on from a sql process/storage processes perspective.  Another thing to keep in mind, is those stall stats are per spid, so if you have a process locking the file and there are 10 or so SPIDs that are waiting, you're going to have a 10x multiplier on the stall stats.

Edit:

Take a look at this article: http://blogs.msdn.com/b/kronos/archive/2010/04/13/introducing-sys-dm-io-virtual-file-stats.aspx?Redirected=true
0
 

Author Closing Comment

by:AXISHK
ID: 39790224
Tks
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

737 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