Take a look at the source for Sys::Statistics::Linux::DiskStats. It includes comments like:
Reading the code and seeing how the module's author calculates values should be helpful.# ------------------------------------------------------------ +-- # The sectors are equivalent with blocks and have a size of 51 +2 # bytes since 2.4 kernels. This value is needed to calculate t +he # amount of disk i/o's in bytes. # ------------------------------------------------------------ +-- blocksize => 512,
In reply to Re^3: (OT) Get the number of blocks per second by reading the proc diskstats file
by keszler
in thread (OT) Get the number of blocks per second by reading the proc diskstats file
by haavard82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |