Tracing Disk Access

Brian Fundakowski Feldman green at freebsd.org
Mon Nov 22 23:33:19 GMT 2004


On Mon, Nov 22, 2004 at 04:22:54PM +0100, Hanspeter Roth wrote:
> 
> Hello,
> 
> I have set an idle timeout for the hard-disk. But when there is no
> user activity there are frequent disk accesses.
> How can one trace disk access?
> I'd like to know the kind of access and on which files/directories/
> nodes. I'd like to log on the console or on a memory disk file.

You should look to the MAC framework to provide you -- if not the entire
solution -- at least insight into how and where you can do this.  If you
were to do it at the disk device level, it would be a GEOM module, though.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


More information about the freebsd-hackers mailing list