LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Balbir Singh" <balbir@in.ibm.com>
To: "Roy Huang" <royhuang9@gmail.com>
Cc: linux-kernel@vger.kernel.org, aubreylee@gmail.com,
	nickpiggin@yahoo.com.au, torvalds@osdl.org
Subject: Re: [PATCH] Provide an interface to limit total page cache.
Date: Mon, 15 Jan 2007 16:31:23 +0530	[thread overview]
Message-ID: <661de9470701150301i7f315280p5ffa2b388e883f50@mail.gmail.com> (raw)
In-Reply-To: <afe668f90701150139q26e41720lf06d6ee445a917b0@mail.gmail.com>

On 1/15/07, Roy Huang <royhuang9@gmail.com> wrote:
> A patch provide a interface to limit total page cache in
> /proc/sys/vm/pagecache_ratio. The default value is 90 percent. Any
> feedback is appreciated.
>

[snip]

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.

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.

Balbir

  reply	other threads:[~2007-01-15 11:01 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 [this message]
2007-01-16  2:34   ` Roy Huang
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:
  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=661de9470701150301i7f315280p5ffa2b388e883f50@mail.gmail.com \
    --to=balbir@in.ibm.com \
    --cc=aubreylee@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=royhuang9@gmail.com \
    --cc=torvalds@osdl.org \
    --subject='Re: [PATCH] Provide an interface to limit total page cache.' \
    /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

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).