lkml.org 
[lkml]   [2003]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Idea for improving linux buffer cache behaviour
On Sat, 4 Oct 2003, David Ashley wrote:

> Forgive me if this has already been thought of, or is obsolete, or is
> just plain a bad idea, but here it is:

Do you also want an answer if the kernel already does
exactly what you are suggesting ? ;)

> 1) Lowest access count looked at first to toss
> 2) If access counts equal, throw out oldest first

> The net result is commonly used items you very much want to remain in
> cache always quickly get rated very highly as the system is used.

Which results in exactly the behaviour you're complaining
about ;))

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.048 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site