Re: Kernel cached memory

From: Diego Calleja
Date: Mon Jul 25 2005 - 12:05:53 EST


El Mon, 25 Jul 2005 12:47:50 -0400,
Bill Davidsen <davidsen@xxxxxxx> escribió:

> Just because default operation works well for you, kindly don't try to
> convice us that there are no cases when the default operation is NOT
> optimal. And IMHO Linux is *way* too willing to evicy clean pages of my
> programs to use as disk buffer, so that when system memory is full I pay
> the overhead of TWO disk i/o's, one to finally write the data to the
> disk and one to read my program back in. If free software is about
> choice, I wish there was more in the area of how memory is used.

You must be more specific here; cached memory isn't always dirty. Most
of the times the pages used for cache are clean and can be evicted
quite fast and of course without writting anything to the disk.

If you want to tune the balance between "pages used for programs" vs
"pages used for cache" that's another problem, but I can't find a
reason why kernel shouldn't cache things when free memory is
available. And certainly that's not what Ashley was asking.
-
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/