From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 22 23:33:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 979BE16A4CE for ; Mon, 22 Nov 2004 23:33:18 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id iAMNXIUP017330 for ; Mon, 22 Nov 2004 18:33:18 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id iAMNXId1017329 for freebsd-hackers@freebsd.org; Mon, 22 Nov 2004 18:33:18 -0500 (EST) (envelope-from green) Date: Mon, 22 Nov 2004 18:33:18 -0500 From: Brian Fundakowski Feldman To: freebsd-hackers@freebsd.org Message-ID: <20041122233318.GB1473@green.homeunix.org> References: <20041122152254.GA1229@gicco.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041122152254.GA1229@gicco.homeip.net> User-Agent: Mutt/1.5.6i Subject: Re: Tracing Disk Access X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 23:33:19 -0000 On Mon, Nov 22, 2004 at 04:22:54PM +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. You should look to the MAC framework to provide you -- if not the entire solution -- at least insight into how and where you can do this. If you were to do it at the disk device level, it would be a GEOM module, though. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\