Re: [PATCH 06/12] mm: balance active/inactive list scan rates

From: Peter Zijlstra
Date: Thu Dec 01 2005 - 06:38:58 EST


On Thu, 2005-12-01 at 18:18 +0800, Wu Fengguang wrote:
> plain text document attachment
> (mm-balance-active-inactive-list-aging.patch)
> shrink_zone() has two major design goals:
> 1) let active/inactive lists have equal scan rates
> 2) do the scans in small chunks
>

> The new design:
> 1) keep perfect balance
> let active_list follow inactive_list in scan rate
>
> 2) always scan in SWAP_CLUSTER_MAX sized chunks
> simple and efficient
>
> 3) will scan at least one chunk
> the expected behavior from the callers
>
> The perfect balance may or may not yield better performance, though it
> a) is a more understandable and dependable behavior
> b) together with inter-zone balancing, makes the zoned memories consistent

Nice, this patch effectively separates zone balancing from
active/inactive balancing. I was thinking about doing this this morning
in order to nicely abstract out all the page-replacement code.

Thanks!




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