Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2005 08:42:36 -0700
From:      Scott Long <scottl@samsco.org>
To:        Eric Anderson <anderson@centtech.com>
Cc:        freebsd-hackers@freebsd.org, Mark Kirkwood <markir@paradise.net.nz>
Subject:   Re: Display files currently in the  buffer cache
Message-ID:  <43663B6C.5020804@samsco.org>
In-Reply-To: <43663443.2090802@centtech.com>
References:  <43633948.5030801@paradise.net.nz> <43663443.2090802@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43663B6C.5020804>