Re: [RFC] Optimization for use-once pages

jlnance@intrex.net
Tue, 24 Jul 2001 08:38:09 -0400


On Tue, Jul 24, 2001 at 05:47:30AM +0200, Daniel Phillips wrote:

> So I decided to look for a new way of approaching the use-once problem
> that would easily integrated with our current approach. What I came
> up with is pretty simple: instead of starting a newly allocated page on
> the active ring, I start it on the inactive queue with an age of zero.
> Then, any time generic_file_read or write references a page, if its
> age is zero, set its age to START_AGE and mark it as unreferenced.

This is wonderfully simple and ellegant.

Jim
-
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/