VFS buffer monitoring

Vladimir Dergachev (vladimid@seas.upenn.edu)
Tue, 18 Aug 1998 01:21:50 -0400 (EDT)


Hello all :)

I want to write a program that lists the blocks currently in VFS buffer.
I looked around and couldn't find anything similar, and, well, noone on IRC
seems to know anything about it.
So here goes :
1) does anybody know of such a program ?
2) I looked around in the kernel source and it looks to me that
this stuff isn't visible outside of kernel.. So should I just go
and change kernel directly or can I still get by with writing a
module ? (or maybe even better , just an ordinary program ? )
3) Another stupid question - if I have a file mmaped will it's blocks
(if hit) appear in VFS buffer ? I.e. does it cache it twice ?
Or does the buffer include all mmaped stuff (including
executables ?)

I would appreciate very much any pointers (and especially commentary) on the
subject..

Vladimir Dergachev

http://www.math.upenn.edu/~vdergach

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html