Hello, misc.
I wonder, is there some software that could show me in top(1) manner which files are accessed most intensively right now and by which process/user? The main question I wish to answer is why my OpenBSD/4.2 router's hdd lights are blinking while it definitely should be idle (or not? that is the question).
Thanks to all who replied here and off-list.
Just to clarify: I don't suspect any evil activities on this machine, in fact it's kinda busy box running dhcpd/named/pf/nat, squid, nagios checking dozen of hosts every 5 minutes, httpd and nfs server. Maybe it definitely should NOT be idle :) But most of time hdds are idle and when them start doing something I just want to know why - mostly for educational reasons.
So far I found FreeBSD script 'topless' by Daichi GOTO (http://people.freebsd.org/~daichi/src/topless) which can display fstat(1) output just like top(1) does. Next I'm gonna to experiment with ncheck_ffs(8) as suggested by Unix Fan to combine 3 in 1 plus some sorting and maybe get some friendly output :)
Do I re-inventing the wheel? Any clues are welcome. Yuri A. Spirin