Messages in this thread | | | Date | Thu, 29 Dec 2005 18:17:54 +0800 | From | Coywolf Qi Hunt <> | Subject | Re: + drop-pagecache.patch added to -mm tree |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |