Re: Kernel cached memory

Diego Calleja
2005-07-25T17:04:05Z

El Mon, 25 Jul 2005 12:47:50 -0400,
Bill Davidsen <davidsen@tmr.com> 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.