Re: drop_caches ...

Markus
2009-03-05T13:50:27Z

Am Donnerstag, 5. März 2009 schrieb Wu Fengguang:
> Hi Markus,
>
> On Thu, Mar 05, 2009 at 01:55:35PM +0200, Markus wrote:
> > > Markus, you may want to try this patch, it will have better chance
to figure out
> > > the hidden file pages.
> > >
> > > 1) apply the patch and recompile kernel with
CONFIG_PROC_FILECACHE=m
> > > 2) after booting:
> > > modprobe filecache
> > > cp /proc/filecache filecache-`date +'%F'`
> > > 3) send us the copied file, it will list all cached files,
including
> > > the normally hidden ones.
> >
> > The file consists of 674 lines. If I interpret it right, "size" is
the
> > filesize and "cached" the amount of the file being in cache (why can
> > this be bigger than the file?!).
>
> size = file size in bytes
> cached = cached pages
>
> So it's normal that (size > cached).

Yeah, I just wondered because sometimes its size < cached, buts thats
because cached must obviously be a multiple of 4 KB. So no problem
here ;)

Thanks,
Markus