Re: + drop-pagecache.patch added to -mm tree
From: Coywolf Qi Hunt
Date: Thu Dec 29 2005 - 05:17:05 EST
2005/12/29, Coywolf Qi Hunt <coywolf@xxxxxxxxx>:
> 2005/12/2, akpm@xxxxxxxx <akpm@xxxxxxxx>:
> >
> > The patch titled
> >
> > drop-pagecache
> >
> > has been added to the -mm tree. Its filename is
> >
> > drop-pagecache.patch
> >
> >
> > From: Andrew Morton <akpm@xxxxxxxx>
> >
> > 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@xxxxxxxx>
> > ---
> >
> > 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/