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

Horst von Brand
2004-04-29T13:51:59Z

"Brett E." <brettspamacct@fastclick.com> said:

[...]

> I created a hack which allocates memory causing cache to go down, then
> exits, freeing up the malloc'ed memory. This brings free memory up by
> 400 megs and brings the cache down to close to 0, of course the cache
> grows right afterwards. It would be nice to cap the cache datastructures
> in the kernel but I've been posting about this since September to no
> avail so my expectations are pretty low.

Because it is complete nonsense. Keeping stuff around in RAM in case it
is needed again, as long as RAM is not needed for anything else, is a mayor
win. That is what cache is.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513