From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 31 15:42:38 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 6AA8316A41F for ; Mon, 31 Oct 2005 15:42:38 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC26443D6B for ; Mon, 31 Oct 2005 15:42:37 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id j9VFgYnT041532; Mon, 31 Oct 2005 08:42:34 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <43663B6C.5020804@samsco.org> Date: Mon, 31 Oct 2005 08:42:36 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <43633948.5030801@paradise.net.nz> <43663443.2090802@centtech.com> In-Reply-To: <43663443.2090802@centtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, Mark Kirkwood Subject: Re: Display files currently in the buffer cache X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2005 15:42:38 -0000 Eric Anderson wrote: > Mark Kirkwood wrote: > >> Dear hackers, >> >> I'm interested in being able to display some data about the contents >> of the buffer cache , say file name and page offset (something like >> IRIX's 'bufview'). >> >> Is there any utilities that do this currently? (searched around but >> didn't see anything in ports). >> >> Assuming not, is it feasible to write one to do this? (if so, any >> pointers appreciated - massive FreeBSD internals newbie here....). > > > This would be a cool tool! I've been thinking of that too, and also > would like to have a lkdump tool - which dumps information about > currently locked files. > > Eric > > > Does the FreeBSD VM really have a concept of filenames at all? I thought that all it understood was buffer objects and vnodes. And since there isn't a strong correlation between vnodes and the filesystem namespace, it would be hard to provide such information. Scott