From owner-freebsd-questions@FreeBSD.ORG Sun Nov 21 19:17:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7463516A4CE for ; Sun, 21 Nov 2004 19:17:45 +0000 (GMT) Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9178843D3F for ; Sun, 21 Nov 2004 19:17:42 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (217-162-157-43.dclient.hispeed.ch [217.162.157.43])iALJHc0u016908 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 21 Nov 2004 20:17:41 +0100 Received: from gicco.here (localhost [127.0.0.1]) by gicco.homeip.net (8.12.11/8.12.11) with ESMTP id iALJHbqj002357 for ; Sun, 21 Nov 2004 20:17:37 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.here (8.12.11/8.12.11/Submit) id iALJHbAl002356 for freebsd-questions@freebsd.org; Sun, 21 Nov 2004 20:17:37 +0100 (CET) (envelope-from hampi@rootshell.be) X-Authentication-Warning: gicco.here: idefix set sender to hampi@rootshell.be using -f Date: Sun, 21 Nov 2004 20:17:37 +0100 From: Hanspeter Roth To: freebsd-questions@freebsd.org Message-ID: <20041121191737.GA2270@gicco.homeip.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20041121093347.GA861@gicco.homeip.net> <41A0B955.8090700@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41A0B955.8090700@mac.com> User-Agent: Mutt/1.4.2.1i Subject: Re: Tracing Disk Activity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2004 19:17:45 -0000 On Nov 21 at 10:50, Chuck Swiger spoke: > 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. I guess that some daemons are causing disk access. But it must be not only syslogd. Is the syncer causing the disk to spin up even if there is nothing to flush? [...] > 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 My idea is to transfer those files that are written also when the user is idle to a RAM disk (some from /var/log and dhclient.leases). But I don't want to mount the filesystems read-only. > Compact Flash. Either that, or simply shutdown the system or run zzz to > suspend the system via APM/APCI. This is less convenient and probably doesn't work on my laptop. (I have to check whether the upgrade to 5.3R has changed something in this respect.) -Hanspeter