Nov 13, 2011, 6:21 AM
Post #1 of 1
Find the number of blocks in proc diskstats file
I'm writing a perl script that reads the /proc/diskstats file and it's supposed to calculate how many blocks per second is written to the harddisk.
I just can't figure how to do the calculations. I have read the documentation file for /proc/diskstats but still can't figure it out.
SHould I look at the number of sectors, writes merged, completed writes, or what?
I hope someone has got some pointers for me, because I'm stuck :(