Solved

sys.dm_io_virtual_file_stats on SQL Server

Posted on 2014-01-17
2
649 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to import 7 54
Convert column to int 13 28
Save sql query result in sql server 15 25
Convert SP in a format for debugging 7 11
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 we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

21 Experts available now in Live!

Get 1:1 Help Now