]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: debugging facility to access dangling memcgs
authorGlauber Costa <glommer@parallels.com>
Sun, 10 Mar 2013 10:54:49 +0000 (21:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:56:32 +0000 (14:56 +1100)
commitdc05370db79b5e3247fea8d762e8f5fe66ec16a4
treecafba74132af43cc8540fac47c1561946dac84d2
parent112eabd5473febfa0f9b41088414314bd8af1604
memcg: debugging facility to access dangling memcgs

If memcg is tracking anything other than plain user memory (swap, tcp buf
mem, or slab memory), it is possible - and normal - that a reference will
be held by the group after it is dead.  Still, for developers, it would be
extremely useful to be able to query about those states during debugging.

This patch provides a debugging facility in the root memcg, so we can
inspect which memcgs still have pending objects, and what is the cause of
this state.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/cgroups/memory.txt
init/Kconfig
mm/memcontrol.c