Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 lurking in the Monastery: (6)
As of 2014-09-16 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (0 votes), past polls