Re: [RFC] Optimization for use-once pages

From: jlnance@intrex.net
Date: Tue Jul 24 2001 - 07:38:09 EST


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/



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:15 EST