
haavard82
New User
Nov 13, 2011, 6:21 AM
Post #1 of 1
(176 views)
|
|
Find the number of blocks in proc diskstats file
|
Can't Post
|
|
Hello, 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 :(
|