Re: + drop-pagecache.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2005/12/29, Coywolf Qi Hunt <[email protected]>:
> 2005/12/2, [email protected] <[email protected]>:
> >
> > The patch titled
> >
> >      drop-pagecache
> >
> > has been added to the -mm tree.  Its filename is
> >
> >      drop-pagecache.patch
> >
> >
> > From: Andrew Morton <[email protected]>
> >
> > 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 <[email protected]>
> > ---
> >
> >  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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux