Re: [patch 08/11] mm: vmscan: convert global reclaim to per-memcgLRU lists

From: KAMEZAWA Hiroyuki
Date: Tue Sep 13 2011 - 06:42:41 EST


On Mon, 12 Sep 2011 12:57:25 +0200
Johannes Weiner <jweiner@xxxxxxxxxx> wrote:

> The global per-zone LRU lists are about to go away on memcg-enabled
> kernels, global reclaim must be able to find its pages on the
> per-memcg LRU lists.
>
> Since the LRU pages of a zone are distributed over all existing memory
> cgroups, a scan target for a zone is complete when all memory cgroups
> are scanned for their proportional share of a zone's memory.
>
> The forced scanning of small scan targets from kswapd is limited to
> zones marked unreclaimable, otherwise kswapd can quickly overreclaim
> by force-scanning the LRU lists of multiple memory cgroups.
>
> Signed-off-by: Johannes Weiner <jweiner@xxxxxxxxxx>


Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

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