Rik, On Sat, Nov 19, 2005 at 06:30:01PM -0500, Rik van Riel wrote: > On Tue, 15 Nov 2005, Scott F. H. Kaplan wrote: > > > For completely different purposes, we have a 2.4.x kernel that > > maintains this history efficiently. If you (or anyone else) are > > interested at some point in porting this reference-pattern-gathering > > code forward to the 2.6.x line, > > Marcelo already did some work on that: > > http://linux-mm.org/PageTrace Nope. Marcelo's work on reference trace collection overlaps with other work I've done (kVMTrace), but I'm referring to something completely different. Specifically, I'm talking about gathering LRU miss histograms (A.K.A. ``miss rate curves'') online in the kernel. A paper in ASPLOS 2004 presented this idea, as did we in an ISMM 2004 paper on automatically resizing garbage collectors. We have a kernel with much lower overhead than the ASPLOS paper presents. These histograms can be used to perform various kinds of cost/benefit calculations for current reference patterns. In this case, it could be used to implement the method I presented in a USENIX 1999 paper for dynamically adaptic compressed cache sizes. It's a mechanism that would be difficult to trick into maladaptivity. Scott