Date: Sun, 21 Nov 2004 17:00:29 +0100 From: Hanspeter Roth <hampi@rootshell.be> To: freebsd-questions@freebsd.org Cc: David Jenkins <david.jenkins@gmail.com> Subject: Re: Tracing Disk Activity Message-ID: <20041121160029.GB778@gicco.homeip.net> In-Reply-To: <9395922d04112106002061980d@mail.gmail.com> References: <20041121093347.GA861@gicco.homeip.net> <9395922d04112106002061980d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 21 at 14:00, David Jenkins spoke: > On Sun, 21 Nov 2004 10:33:47 +0100, Hanspeter Roth <hampi@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). Fstat(1) seems to take snapshots only and doesn't show # of bytes transfered. Using fstat by polling frequently misses programs run between poll. I'd like a tool that displays in real-time (similar to tcpdump). -Hanspeter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041121160029.GB778>