Re: Idea for improving linux buffer cache behaviour

From: Rik van Riel
Date: Sat Oct 04 2003 - 14:14:56 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/