Re: [patch 06/11] mm: memcg: remove optimization of keeping theroot_mem_cgroup LRU lists empty

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


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

> root_mem_cgroup, lacking a configurable limit, was never subject to
> limit reclaim, so the pages charged to it could be kept off its LRU
> lists. They would be found on the global per-zone LRU lists upon
> physical memory pressure and it made sense to avoid uselessly linking
> them to both lists.
>
> The global per-zone LRU lists are about to go away on memcg-enabled
> kernels, with all pages being exclusively linked to their respective
> per-memcg LRU lists. As a result, pages of the root_mem_cgroup must
> also be linked to its LRU lists again.
>
> The overhead is temporary until the double-LRU scheme is going away
> completely.
>
> 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/