From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 23 13:45:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FF1816A4CE; Tue, 23 Nov 2004 13:45:56 +0000 (GMT) Received: from comsys.ntu-kpi.kiev.ua (comsys.ntu-kpi.kiev.ua [194.125.244.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B8043D31; Tue, 23 Nov 2004 13:45:47 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) (authenticated bits=0)iANDk6jT023070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Nov 2004 15:46:06 +0200 (EET) Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id A8DF714F; Tue, 23 Nov 2004 15:45:02 +0200 (EET) Date: Tue, 23 Nov 2004 15:45:02 +0200 From: Andrey Simonenko To: Brian Fundakowski Feldman Message-ID: <20041123134502.GA1112@pm514-9.comsys.ntu-kpi.kiev.ua> References: <20041122152254.GA1229@gicco.homeip.net> <20041122233318.GB1473@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041122233318.GB1473@green.homeunix.org> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on comsys.ntu-kpi.kiev.ua cc: freebsd-hackers@freebsd.org 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: Tue, 23 Nov 2004 13:45:56 -0000 On Mon, Nov 22, 2004 at 06:33:18PM -0500, Brian Fundakowski Feldman wrote: > 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. > As I understood you suggested to insert controlling geom between a consumer and a provider attached to each other. Am I right that with GEOM framework it is impossible to control if some data is read from the buffer cache and it is only possible to control device strategy calls?