Attatched is a patch to add % utilization to disk monitoring. It extends vfs.dev* metrics like this:
vfs.dev.read[sda1,putil] - read utilization
vfs.dev.write[sda1,putil] - write utilization
vfs.dev[sda1,putil] - overall % utilization
vfs.dev[sda1,sectors] - sum of wsect + rsect
vfs.dev[sda1,operations] - sum of wio + rio
I have concerns about the first two since the linux kernel actually sums ms spent over all the i/o operations in flight for those two, which can result in numbers like 14,000% utilization. The vfs.dev[sda1,putil] is *not* the result of summing the read and write values and is a different counter in the kernel which counts the number of ms where there has been at least one i/o in flight -- it appears to reliably max out at 99-100%.
vfs.dev.read[sda1,putil] - read utilization
vfs.dev.write[sda1,putil] - write utilization
vfs.dev[sda1,putil] - overall % utilization
vfs.dev[sda1,sectors] - sum of wsect + rsect
vfs.dev[sda1,operations] - sum of wio + rio
I have concerns about the first two since the linux kernel actually sums ms spent over all the i/o operations in flight for those two, which can result in numbers like 14,000% utilization. The vfs.dev[sda1,putil] is *not* the result of summing the read and write values and is a different counter in the kernel which counts the number of ms where there has been at least one i/o in flight -- it appears to reliably max out at 99-100%.
Comment