I am working on a new IO scheduler for the Linux Kernel. I am trying to see if anyone knows of a tool that prints out total number of outstanding IO requests (Disk IO queue) in Linux?
I would be working from a terminal.
Thank you!
I am working on a new IO scheduler for the Linux Kernel. I am trying to see if anyone knows of a tool that prints out total number of outstanding IO requests (Disk IO queue) in Linux?
I would be working from a terminal.
Thank you!
Forgive the massive necro here. You actually want
iostat -x
which will display the extended stats for the device in question since last iostat was run. If you wish to monitor the queue in realtime you wantiostat -xt 1
(oriostat -xmt 1
to show details in megabytes).You can see the average queue size in the
avgqu-sz
column.Consider the following example output from
iostat -xmt 1
which shows a full IO queue (max queue length is 128 for this device) and a saturated disk during a benchmark.