Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: (OT) Get the number of blocks per second by reading the proc diskstats file

by keszler (Priest)
on Nov 14, 2011 at 20:46 UTC ( #938022=note: print w/ replies, xml ) Need Help??


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:

# ------------------------------------------------------------ +-- # 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,
Reading the code and seeing how the module's author calculates values should be helpful.


Comment on Re^3: (OT) Get the number of blocks per second by reading the proc diskstats file
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938022]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2015-07-07 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls