Tracing Disk Activity

David Jenkins david.jenkins at gmail.com
Sun Nov 21 06:00:33 PST 2004


On Sun, 21 Nov 2004 10:33:47 +0100, Hanspeter Roth <hampi at rootshell.be> 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.

There may be a much better way of doing this but have a look at fstat(1).

Hope this helps.

David


More information about the freebsd-questions mailing list