From owner-freebsd-questions@FreeBSD.ORG Sun Nov 21 16:00:43 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 CC39216A4CE for ; Sun, 21 Nov 2004 16:00:43 +0000 (GMT) Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDAAC43EAE for ; Sun, 21 Nov 2004 16:00:40 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (217-162-157-43.dclient.hispeed.ch [217.162.157.43])iALG0V7h010066 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 21 Nov 2004 17:00:36 +0100 Received: from gicco.here (localhost [127.0.0.1]) by gicco.homeip.net (8.12.11/8.12.11) with ESMTP id iALG0UHr001096; Sun, 21 Nov 2004 17:00:30 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.here (8.12.11/8.12.11/Submit) id iALG0T52001095; Sun, 21 Nov 2004 17:00:29 +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 17:00:29 +0100 From: Hanspeter Roth To: freebsd-questions@freebsd.org Message-ID: <20041121160029.GB778@gicco.homeip.net> Mail-Followup-To: freebsd-questions@freebsd.org, David Jenkins References: <20041121093347.GA861@gicco.homeip.net> <9395922d04112106002061980d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9395922d04112106002061980d@mail.gmail.com> User-Agent: Mutt/1.4.2.1i cc: David Jenkins 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 16:00:43 -0000 On Nov 21 at 14:00, David Jenkins spoke: > On Sun, 21 Nov 2004 10:33:47 +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. > > 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