This isn't quite enough. We do want to be able to assign a ranking to
members of the accessed-once set, and we do want to distinguish between newly
created pages and pages that have aged all the way to zero.
> Then, on the first access, it is
> incremented to one. All accesses where page->age was previously zero
> cause it to be incremented to one, and subsequent accesses where
> page->age is non-zero cause a doubling rather than an increment.
> This gives a nice heavy priority boost to frequently-accessed pages...
While on that topic, could somebody please explain to me why exponential
aging is better than linear aging by a suitably chosen increment? It's clear
what's wrong with it: after 32 hits you lose all further information. I
suspect there are more problems with it than that.
-- Daniel - 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/