Re: [PATCH] meminfo: add Cached underflow check

2005-04-04 Thread Martin Hicks
On Mon, Apr 04, 2005 at 03:10:49PM -0700, Andrew Morton wrote: > Martin Hicks <[EMAIL PROTECTED]> wrote: > > > > Working on some code lately I've been getting huge values > > for "Cached". The cause is that get_page_cache_size() is an > > approximate value, and for a sufficiently small returned

Re: [PATCH] meminfo: add Cached underflow check

2005-04-04 Thread Andrew Morton
Martin Hicks <[EMAIL PROTECTED]> wrote: > > Working on some code lately I've been getting huge values > for "Cached". The cause is that get_page_cache_size() is an > approximate value, and for a sufficiently small returned value > of get_page_cache_size() the value underflows. OK.. I think I'd

[PATCH] meminfo: add Cached underflow check

2005-04-04 Thread Martin Hicks
Hi, This patch was generated against 2.6.12-rc1 Working on some code lately I've been getting huge values for "Cached". The cause is that get_page_cache_size() is an approximate value, and for a sufficiently small returned value of get_page_cache_size() the value underflows. Signed-off-by:

[PATCH] meminfo: add Cached underflow check

2005-04-04 Thread Martin Hicks
Hi, This patch was generated against 2.6.12-rc1 Working on some code lately I've been getting huge values for Cached. The cause is that get_page_cache_size() is an approximate value, and for a sufficiently small returned value of get_page_cache_size() the value underflows. Signed-off-by:

Re: [PATCH] meminfo: add Cached underflow check

2005-04-04 Thread Andrew Morton
Martin Hicks [EMAIL PROTECTED] wrote: Working on some code lately I've been getting huge values for Cached. The cause is that get_page_cache_size() is an approximate value, and for a sufficiently small returned value of get_page_cache_size() the value underflows. OK.. I think I'd prefer to

Re: [PATCH] meminfo: add Cached underflow check

2005-04-04 Thread Martin Hicks
On Mon, Apr 04, 2005 at 03:10:49PM -0700, Andrew Morton wrote: Martin Hicks [EMAIL PROTECTED] wrote: Working on some code lately I've been getting huge values for Cached. The cause is that get_page_cache_size() is an approximate value, and for a sufficiently small returned value of