Re: 2.4.14-pre8: 'free' still reports bogus 'cached' value.

From: Andrew Morton (akpm@zip.com.au)
Date: Sun Nov 04 2001 - 13:59:21 EST


Andrew Morton wrote:
>
> It's a bug in the /proc code. If buffercache pages exceed
> pagecache pages, `pg_size' flips negative.
>
> There doesn't seem to be any reason to subtract buffermem_pages
> from page_cache_size - they're independent.
>

Well that was crap, wasn't it? Wrong kernel.

I wonder if it's due to the fact that grow_dev_page()
calls find_or_create_page(), but we increment the
buffermem_pages count unconditionally, whether or
not the page was newly created?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:23 EST