Re: [RFC][PATCH 0/2] memcg: simple hierarchy (v2)

From: Rik van Riel
Date: Thu May 29 2008 - 21:48:59 EST


On Fri, 30 May 2008 10:43:12 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:

> Implemented Policy:
> - parent overcommits all children
> parent->usage = resource used by itself + resource moved to children.
> Of course, parent->limit > parent->usage.
> - when child's limit is set, the resouce moves.
> - no automatic resource moving between parent <-> child

> Why this is enough ?
> - A middleware can do various kind of resource balancing only by reseting "limit"
> in userland.

I like this idea. The alternative could mean having a page live
on multiple cgroup LRU lists, not just the zone LRU and the one
cgroup LRU, and drastically increasing run time overhead.

Swapping memory in and out is horrendously slow anyway, so the
idea of having a daemon adjust the limits on the fly should work
just fine.

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