Re: inode_cache / dentry_cache not being reclaimed aggressively enough on low-memory PCs

From: Mike Fedyk
Date: Sat Jan 03 2004 - 17:26:51 EST


On Sat, Jan 03, 2004 at 06:27:42PM +0000, Alex Buell wrote:
> On Sat, 3 Jan 2004, John Lash wrote:
> > A couple of solutions come to mind. The one I like best would be to
> > adjust the above code to make it conscious of the total memory in the
> > system and keep nr_unused to a reasonable percentage. Another is to
> > allow unused_ratio to be less than 1, Possibly some/proc entry to lower
> > it (.5, .25, whatever), or to avoid the float, provide another parameter
> > to do an integer divisor for unused_ratio. Something like:
> >
> > nr_unused - nr_used * unused_ratio / ratio_fraction
>
> That solution does seem be the best answer.

Be sure to run your changes by roger luetger. He's working with the
problems with lowmem machines and 2.6.
-
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/