Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2004 10:50:45 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Tracing Disk Activity
Message-ID:  <41A0B955.8090700@mac.com>
In-Reply-To: <20041121093347.GA861@gicco.homeip.net>
References:  <20041121093347.GA861@gicco.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hanspeter Roth wrote:
> I have set an idle timeout for the hard-disk. But when there is no
> user activity there are frequent disk accesses.

Yes, this is Unix.  Even when there is no user activity, a Unix system 
normally is still running a number of daemons such as syslogd which regularly 
write to the filesystem.  Beyond that, the syncer mechanism tries to reduce 
the number of dirty memory buffers every thirty seconds or so.

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

If you ask this question in the hopes of shutting down disk access long enough 
to permit your drives to spin down, then please be aware that such an answer 
won't help.

Instead you probably will need to mount filesystems read-only and create RAM 
disks in a fashion similar to booting off limited-write media like Compact 
Flash.  Either that, or simply shutdown the system or run zzz to suspend the 
system via APM/APCI.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41A0B955.8090700>