Re: Better pagecache statistics ?

Marcelo Tosatti
2005-12-01T16:00:44Z

On Thu, Dec 01, 2005 at 01:20:29PM -0200, Marcelo Tosatti wrote:
>
> Hi Badari,
>
> On Wed, Nov 30, 2005 at 10:57:09AM -0800, Badari Pulavarty wrote:
> > Hi,
> >
> > Is there a effort/patches underway to provide better pagecache
> > statistics ?
> >
> > Basically, I am interested in finding detailed break out of
> > cached pages. ("Cached" in /proc/meminfo)
> >
> > Out of this "cached pages"
> >
> > - How much is just file system cache (regular file data) ?
> > - How much is shared memory pages ?
>
> You could do that from userspace probably, by doing some math
> on all processes statistics versus global stats, but does not
> seem very practical.

Actually, SysRQ-M reports "N pages shared".