How can I monitor disk I/O speed?

Can you help me to add custom WMI monitors?

Q: Can you help me to add a custom WMI monitor? For example, what query can be used to check disk C: Read & Write Bytes per Sec?

A: The following custom WMI Query can be used:

SELECT DiskBytesPerSec FROM Win32_PerfFormattedData_PerfDisk_LogicalDisk WHERE Name = "C:"

In general, if you need to read a Windows performance counter value, you should

  1. Find the corresponding Win32_PerfFormattedData-derived WMI class:
    http://msdn.microsoft.com/en-us/library/aa392397
    http://msdn.microsoft.com/en-us/library/aa394253
  2. Choose the needed class property (properties correspond to counters). For example, properties of Win32_PerfFormattedData_PerfDisk_LogicalDisk class can be found at:
    http://msdn.microsoft.com/en-us/library/aa394261
  3. Construct the WMI Query as
        SELECT <property name> FROM  WHERE Name = <instance name>
    

    Note: WHERE clause is required if there are several instances (e.g. if several logical disks are configured)

Related topics