The hidden /proc/

Today we tried to measure some disk statistics with iostat, but the command wasn’t on our server.

The workaround was simple:

  1. run #strace iostat; on our laptop to find the files he used to make the stats ( /proc/diskstats :P )
  2. see the relative docs to check the meaning of all that numbers
  3. use awk to script out some statistics on “speed and acceleration” of the given numbers

Quick and nice :P