Re: [RFC] respect the referenced bit of KVM guest pages?

From: Rik van Riel
Date: Fri Aug 14 2009 - 09:20:41 EST


Wu Fengguang wrote:
On Fri, Aug 14, 2009 at 05:10:55PM +0800, Johannes Weiner wrote:

So even with the active list being a FIFO, we keep usage information
gathered from the inactive list. If we deactivate pages in arbitrary
list intervals, we throw this away.

We do have the danger of FIFO, if inactive list is small enough, so
that (unconditionally) deactivated pages quickly get reclaimed and
their life window in inactive list is too small to be useful.

This one of the reasons why we unconditionally deactivate
the active anon pages, and do background scanning of the
active anon list when reclaiming page cache pages.

We want to always move some pages to the inactive anon
list, so it does not get too small.

--
All rights reversed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/