Display files currently in the buffer cache

Scott Long scottl at samsco.org
Mon Oct 31 07:42:38 PST 2005


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


More information about the freebsd-hackers mailing list