I'm trying to monitor disk activity of each process. One way that I found how to do this is to read /proc/pid/io file and compare fields with previous read. That works fine except my monitoring process seem to be able to read only some io files (for example it has no permissions to read apache's). How to read io of others? Also perhaps there is a better way of achieving this goal?
Edit Obviously I could run the process as root, but I'd like to avoid that