lkml.org 
[lkml]   [2004]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Cached memory never gets released
On Thu, 24 Jun 2004 07:48:20 -0700, David Ashley <dash@xdr.com> wrote:

> So we're snowballing but I don't know what mechanism is supposed to actually
> free the cached pages when the system is low on memory. Any advice would
> be welcome.
>

You may want to examine /proc/meminfo, /proc/slabinfo, and the output
of sysrq-m.

mm/vmscan.c (kswapd) is responsible for freeing most memory. The
routine you are probably most interested in is shrink_cache.

I would check to make sure that the pages in the icache are backed by
a mapping and if so, that they are clean. If either of those two
conditions are not met, then the page cannot be thrown away.
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.023 / U:1.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site