Re: ~500 megs cached yet 2.6.5 goes into swap hell

From: Andrew Morton
Date: Thu Apr 29 2004 - 17:01:33 EST


Paul Jackson <pj@xxxxxxx> wrote:
>
> Andrew wrote:
> > Two things:
> > a) a knob to say "only reclaim pagecache". We have that now.
> > b) a knob to say "reclaim vfs caches harder" ...
>
> Are these knobs system wide in affect, or per job?
> I am presuming system wide.

yup, system-wide.

> When I'm working late, I want my updatedb/backup jobs
> to scrunch themselves into a corner, even as my builds
> and gui desktop continue to fly and suck up RAM.

Sure. That's not purely a cacheing thing though. Even if the background
activity was clamped to just a few megs of cache you'll find that the
seek activity is a killer, and needs a limitation mechanism. Although the
anticipatory scheduler helps here a lot.
-
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/