On Tue, 7 Jul 1998 13:50:02 -0400 (EDT), "Benjamin C.R. LaHaise"
<blah@kvack.org> said:
> Right. I'd rather see a multi-level lru like policy (ie on each cache hit
> it gets moved up one level in the cache, with the lru'd pages from a given
> level being bumped to the head of the next lower level) used for the page
> cache (it's kinda like the old dcache), whereby a data that is accessed
> only once ends up being a prime target for replacement. Of course, this
> can be done with the current aging scheme, it's just that the algorithms
> used are O(nasty) rather than O(1).
There's a fundamentally nice property about the multi-level cache
which we _cannot_ easily emulate with page aging, and that is the
ability to avoid aging any hot pages at all while we are just
consuming cold pages. For example, a large "find|xargs grep" can be
satisfied without staling any of the existing hot cached pages.
--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu