in reply to Re^2: (OT) Get the number of blocks per second by reading the proc diskstats file
in thread (OT) Get the number of blocks per second by reading the proc diskstats file
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,
|
|---|