public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Coywolf Qi Hunt <coywolf@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: Re: + drop-pagecache.patch added to -mm tree
Date: Thu, 29 Dec 2005 18:17:54 +0800	[thread overview]
Message-ID: <2cd57c900512290217k529e0d2bn@mail.gmail.com> (raw)
In-Reply-To: <2cd57c900512290154k12a2265cx@mail.gmail.com>

2005/12/29, Coywolf Qi Hunt <coywolf@gmail.com>:
> 2005/12/2, akpm@osdl.org <akpm@osdl.org>:
> >
> > The patch titled
> >
> >      drop-pagecache
> >
> > has been added to the -mm tree.  Its filename is
> >
> >      drop-pagecache.patch
> >
> >
> > From: Andrew Morton <akpm@osdl.org>
> >
> > Add /proc/sys/vm/drop-pagecache.  When written to, this will cause the kernel
> > to discard as much pagecache and reclaimable slab objects as it can.
> >
> > It won't drop dirty data, so the user should run `sync' first.
> >
> > Caveats:
> >
> > a) Holds inode_lock for exorbitant amounts of time.
> >
> > b) Needs to be taught about NUMA nodes: propagate these all the way through
> >    so the discarding can be controlled on a per-node basis.
> >
> > c) The pagecache shrinking and slab shrinking should probably have separate
> >    controls.
>
> Yes. Let /proc/sys/vm/drop-pagecache for pagecache shrinking only and
> add another /proc/sys/vm/drop-slab for slab shrinking.

Hadn't checked the mm snapshort. ignore the above comment then.

>
> >
> >
> > Signed-off-by: Andrew Morton <akpm@osdl.org>
> > ---
> >
> >  fs/Makefile            |    2 -
> >  fs/drop-pagecache.c    |   62 +++++++++++++++++++++++++++++++++++++++++++++++++
>
> I'd rather have drop-pagecache.c stay in mm/. Fix mm/Makefile and do
> not touch fs/ at all.
>
> -- Coywolf
>
> >  include/linux/mm.h     |    5 +++
> >  include/linux/sysctl.h |    1
> >  kernel/sysctl.c        |    9 +++++++
> >  mm/truncate.c          |    1
> >  mm/vmscan.c            |    3 --
> >  7 files changed, 79 insertions(+), 4 deletions(-)
> >

--
Coywolf Qi Hunt

  reply	other threads:[~2005-12-29 10:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200512020130.jB21UWpS019783@shell0.pdx.osdl.net>
2005-12-29  9:54 ` + drop-pagecache.patch added to -mm tree Coywolf Qi Hunt
2005-12-29 10:17   ` Coywolf Qi Hunt [this message]
2005-12-29 14:46   ` Christoph Hellwig
2005-12-30  0:11     ` Andrew Morton

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=2cd57c900512290217k529e0d2bn@mail.gmail.com \
    --to=coywolf@gmail.com \
    --cc=akpm@osdl.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox