<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Pending IO request in SQL Server &#8211; DMV</title>
	<atom:link href="http://blog.sqlauthority.com/2011/03/13/sql-server-pending-io-request-in-sql-server-dmv/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/03/13/sql-server-pending-io-request-in-sql-server-dmv/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Wed, 22 May 2013 18:05:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #020 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/03/13/sql-server-pending-io-request-in-sql-server-dmv/#comment-438061</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #020 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 16 Mar 2013 01:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12207#comment-438061</guid>
		<description><![CDATA[[...] SQL SERVER – Pending IO request in SQL Server – DMV “How do we know how many pending IO requests are there for database files (.mdf, .ldf) individually?” Very interesting question and indeed answer is very interesting as well. Here is the quick script which I use to find the same. It has to be run in the context of the database for which you want to know pending IO statistics. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – Pending IO request in SQL Server – DMV “How do we know how many pending IO requests are there for database files (.mdf, .ldf) individually?” Very interesting question and indeed answer is very interesting as well. Here is the quick script which I use to find the same. It has to be run in the context of the database for which you want to know pending IO statistics. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selvakumar</title>
		<link>http://blog.sqlauthority.com/2011/03/13/sql-server-pending-io-request-in-sql-server-dmv/#comment-381033</link>
		<dc:creator><![CDATA[selvakumar]]></dc:creator>
		<pubDate>Mon, 26 Nov 2012 04:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12207#comment-381033</guid>
		<description><![CDATA[i like to know , how to find total time taken by io in sql server.i need to find this by query.then what is the difference between elaspsed time and io time.]]></description>
		<content:encoded><![CDATA[<p>i like to know , how to find total time taken by io in sql server.i need to find this by query.then what is the difference between elaspsed time and io time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mbourgon</title>
		<link>http://blog.sqlauthority.com/2011/03/13/sql-server-pending-io-request-in-sql-server-dmv/#comment-287686</link>
		<dc:creator><![CDATA[mbourgon]]></dc:creator>
		<pubDate>Wed, 23 May 2012 16:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12207#comment-287686</guid>
		<description><![CDATA[Pinal, I&#039;m using a different query that does outer joins on dm_io_pending_io_requests and dm_io_virtual_file_stats, and I&#039;m finding slowdowns in unknown files - the io_handle doesn&#039;t match up.  Any ideas?



select
   db_name(vfs.database_id) as database_name,
   mf.name as logical_file_name,
   pr.io_type,
   io_handle,
   sum(pr.io_pending_ms_ticks) as sum_io_pending_ms_ticks,
   count(*) as [count]
from
   sys.dm_io_pending_io_requests pr
      left join sys.dm_io_virtual_file_stats(null, null) vfs on vfs.file_handle = pr.io_handle
         left join sys.master_files mf on mf.database_id = vfs.database_id
                               and mf.file_id = vfs.file_id
where
   pr.io_pending = 1 
group by
   db_name(vfs.database_id),
   mf.name,
   pr.io_type, io_handle]]></description>
		<content:encoded><![CDATA[<p>Pinal, I&#8217;m using a different query that does outer joins on dm_io_pending_io_requests and dm_io_virtual_file_stats, and I&#8217;m finding slowdowns in unknown files &#8211; the io_handle doesn&#8217;t match up.  Any ideas?</p>
<p>select<br />
   db_name(vfs.database_id) as database_name,<br />
   mf.name as logical_file_name,<br />
   pr.io_type,<br />
   io_handle,<br />
   sum(pr.io_pending_ms_ticks) as sum_io_pending_ms_ticks,<br />
   count(*) as [count]<br />
from<br />
   sys.dm_io_pending_io_requests pr<br />
      left join sys.dm_io_virtual_file_stats(null, null) vfs on vfs.file_handle = pr.io_handle<br />
         left join sys.master_files mf on mf.database_id = vfs.database_id<br />
                               and mf.file_id = vfs.file_id<br />
where<br />
   pr.io_pending = 1<br />
group by<br />
   db_name(vfs.database_id),<br />
   mf.name,<br />
   pr.io_type, io_handle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishnam</title>
		<link>http://blog.sqlauthority.com/2011/03/13/sql-server-pending-io-request-in-sql-server-dmv/#comment-124952</link>
		<dc:creator><![CDATA[Krishnam]]></dc:creator>
		<pubDate>Fri, 25 Mar 2011 04:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12207#comment-124952</guid>
		<description><![CDATA[To see the slowest data file, I join the sys.dm_io_virtual_file_stats tabular function with the sys.master_files system view and calculate the average wait time.

SELECT smf.name AS InternalName
, smf.physical_name AS PhysicalFile
, smf.type_desc AS FileType
, CONVERT(NUMERIC(15,0), ((io_stall_read_ms / num_of_reads) 
       +  (io_stall_write_ms / num_of_writes)) / 2) AS AverageWait_ms
  FROM sys.dm_io_virtual_file_stats(NULL, NULL) svs
INNER JOIN sys.master_files smf ON svs.database_id = smf.database_id 
AND svs.file_id = smf.file_id
ORDER BY AverageWait_ms DESC]]></description>
		<content:encoded><![CDATA[<p>To see the slowest data file, I join the sys.dm_io_virtual_file_stats tabular function with the sys.master_files system view and calculate the average wait time.</p>
<p>SELECT smf.name AS InternalName<br />
, smf.physical_name AS PhysicalFile<br />
, smf.type_desc AS FileType<br />
, CONVERT(NUMERIC(15,0), ((io_stall_read_ms / num_of_reads)<br />
       +  (io_stall_write_ms / num_of_writes)) / 2) AS AverageWait_ms<br />
  FROM sys.dm_io_virtual_file_stats(NULL, NULL) svs<br />
INNER JOIN sys.master_files smf ON svs.database_id = smf.database_id<br />
AND svs.file_id = smf.file_id<br />
ORDER BY AverageWait_ms DESC</p>
]]></content:encoded>
	</item>
</channel>
</rss>
