lkml.org 
[lkml]   [1998]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: cp file /dev/zero <-> cache [was Re: increasing page size]
Hi,

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

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