Re: VFS buffer monitoring

Dragos Acostachioaie (dragos@iname.com)
Wed, 19 Aug 1998 23:37:19 +0300 (EEST)


Hi!

On Tue, 18 Aug 1998, Vladimir Dergachev wrote:

>
> 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 ?

nope.

> 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 ? )

I guess a good idea would be to write a /proc interface for this.

> 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
>

Regards,
Dragos.

---------------------------------------------------------------------
Dragos Acostachioaie dragos@iname.com
http://www.arbornet.org/~dragos
Phone: +40-094-564548
---------------------------------------------------------------------

-
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