I need more eyes on the code… ;-)
I did a few more changes, but i’m not a C programmer. I did add two graphs (clean up the screen with curses is boring, thanks for some procedures from iMil and the great wimon software).
With that graphs (Read and Write), we can see (i hope) the bandwidth for each block range.
Well, i think we are getting somewhere…
Please, give me your comments, critics, patches, whatever… ;-)

NFS Block Monitor v0.2

NFS Block Monitor v0.2


Todo:
– I did use integer (just 10 digits)…
– Add to the input the OFFSET of the file (write), and that information can indicate file creation ratio
It’s not 100% true, but if you know the workload (is not database, or binary updates), can be useful;
– Create an IPS package;
– Use the colors (for that i think we will need ncurses, because i want to change just the foreground color: assume_default_colors extension).
Each call to print the counters already have a property to change color. ;)
– Make it more elegant…

Download it!