LKML Archive on
help / color / mirror / Atom feed
From: "Roy Huang" <>
Subject: Re: [PATCH] Provide an interface to limit total page cache.
Date: Tue, 16 Jan 2007 10:34:52 +0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Hi Balbir,

Thanks for your comment.

On 1/15/07, Balbir Singh <> wrote:

> wakeup_kswapd and shrink_all_memory use swappiness to determine what to reclaim
> (mapped pages or page cache).  This patch does not ensure that only
> page cache is
> reclaimed/limited. If the swappiness value is high, mapped pages will be hit.
You are right, it is possible to release mapped pages. It can be
avoided by add a field in "struct scan_control" to determine whether
mapped pages will be released.

> One could get similar functionality by implementing resource management.
> Resource  management splits tasks into groups and does management of
> resources for the
> groups rather than the whole system. Such a facility will come with a
> resource controller for
> memory (split into finer grain rss/page cache/mlock'ed memory, etc),
> one for cpu, etc.
I s there any more information in detail about resource controller?
Even there is a resource controller for tasks, all memory is also
possbile to be eaten up by page cache.
> Balbir

  reply	other threads:[~2007-01-16  2:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-15  9:39 Roy Huang
2007-01-15 11:01 ` Balbir Singh
2007-01-16  2:34   ` Roy Huang [this message]
2007-01-16  9:57     ` Balbir Singh
2007-01-15 11:57 ` Vaidyanathan Srinivasan
2007-01-16  2:40   ` Roy Huang
2007-01-17 14:55     ` Vaidyanathan Srinivasan
2007-01-18  7:56 ` Eric W. Biederman
2007-01-18 14:00 ` Pavel Machek

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] Provide an interface to limit total page cache.' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).