Recently I was in front of a pickle. Like many of us I wished a log about my system drive reads and writes or IO operations.
For Linux there are some good tools for overall and in depth monitoring of your system (like iotop, vnstat, etc…) but I wanted something small and simple.
So I decided to write my own. (Full code @ the end of the post)