How to Calculate Disk Queue length and Disk Busy Time

Hi,

Am doing an enhancements related to monitoring a Linux disk I/O statistics.

The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value.

How to calculate the Disk Queue Length and Disk Busy time from the raw values.

Guide me.

The "Disk Queue Length" is a term more tied to Windows rather than Linux. You can, however, install "iostat" tool, it has plenty of useful information.
Here's the meaning of each value in /proc/diskstats :