[lkml]   [2005]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 0/4] linux-2.6-block: deactivating pagecache for benchmarks
    On Thu, Dec 01, 2005 at 05:25:20PM -0800, Andrew Morton wrote:
    > Dirk Henning Gerdes <> wrote:
    > >
    > > For doing benchmarks on the I/O-Schedulers, I thought it would be very
    > > useful to disable the pagecache.
    > That's an FAQ. Something like this?
    > From: Andrew Morton <>
    > 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.
    > Signed-off-by: Andrew Morton <>

    ACK, I've wanted something like this for a while.

    I really think it should be a config option, though, to discourage
    people from building with it :)


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-12-02 02:36    [W:0.021 / U:5.576 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site