From: David Ashley <dash@xdr.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Cached memory never gets released
Date: Thu, 24 Jun 2004 10:14:47 -0700 [thread overview]
Message-ID: <200406241714.i5OHElWL026388@xdr.com> (raw)
Ross Biro wrote:
>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.
We're locating sysrq-m, I haven't used that before.
/proc/meminfo doesn't give any new insight. /proc/slabinfo the only
thing that jumped out at me was this:
BOX with 16M cached
buffer_head 448 600 96 15 15 1
BOX with 61M cached
buffer_head 1377 4160 96 104 104 1
The inode_cache lines didn't seem to differ much:
inode_cache 838 856 480 107 107 1
vs
inode_cache 313 784 480 97 98 1
The first was the 16M cached and the second was the 61M cached.
In both cases the root filesystem is mounted read-only. So I would think
it can't be a question of dirty pages. In one case the root filesystem
is nfs, and in the other it is a block device with an ext2 filesystem
on it.
Thanks--
Dave
next reply other threads:[~2004-06-24 17:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 17:14 David Ashley [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-29 16:18 Cached memory never gets released David Ashley
2004-06-30 1:25 ` Ross Biro
2004-06-29 15:07 David Ashley
2004-06-29 16:00 ` Ross Biro
2004-06-27 3:24 David Ashley
2004-06-24 14:48 David Ashley
2004-06-24 15:49 ` Ross Biro
2004-06-23 18:35 David Ashley
2004-06-23 18:44 ` Doug McNaught
2004-06-23 15:31 David Ashley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406241714.i5OHElWL026388@xdr.com \
--to=dash@xdr.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.