Re: drop_caches ...

Wu Fengguang
2009-03-05T13:36:58Z

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

Thanks,
Fengguang