login
Header Space

 
 

Filesystem activity monitoring

Previous thread: OpenBSD compatibe USB bluetooth adaptor. by Evgeniy Sudyr on Thursday, November 29, 2007 - 10:25 am. (1 message)

Next thread: Re: openbsd's perl and thread support by Stephen Takacs on Thursday, November 29, 2007 - 11:34 am. (4 messages)
To: <misc@...>
Date: Thursday, November 29, 2007 - 11:07 am

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).

fstat(1) gives just a snapshot and it's ..err... not much friendly in 
that sense :)

Thanx.

Yuri A. Spirin
To: <misc@...>
Date: Friday, November 30, 2007 - 2:01 am

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
To: OpenBSD-Misc <misc@...>
Date: Thursday, November 29, 2007 - 3:05 pm

maybe it's swap being used?
Previous thread: OpenBSD compatibe USB bluetooth adaptor. by Evgeniy Sudyr on Thursday, November 29, 2007 - 10:25 am. (1 message)

Next thread: Re: openbsd's perl and thread support by Stephen Takacs on Thursday, November 29, 2007 - 11:34 am. (4 messages)
speck-geostationary