Calculate Disk Queue Length And Disk Busy Time 

Currently 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.

Answer:

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 : 

Field 1 -- # of reads issued

Field 2 -- # of reads merged, field 6 -- # of writes merged

Field 3 -- # of sectors read

Field 4 -- # of milliseconds spent reading

Field 5 -- # of writes completed

Field 7 -- # of sectors written

Field 8 -- # of milliseconds spent writing

Field 9 -- # of I/Os currently in progress

Field 10 -- # of milliseconds spent doing I/Os

Field 11 -- weighted # of milliseconds spent doing I/Os 

Linux Tips

Have a Linux Problem
Linux Forum - Do you have a Linux Question?

Linux Books
Linux Certification, System Administration, Programming, Networking Books

Linux Home: Linux System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.