]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: debugging facility to access dangling memcgs
authorGlauber Costa <glommer@parallels.com>
Thu, 9 May 2013 23:57:19 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:43 +0000 (14:17 +1000)
commitc4c23753687fe242ebb368f0465832ca12b00fc7
tree85ecbff7d80c5bf8a168abf7c9f8049a7cef4bb8
parent7991d62feaf51645e1e47bcef23d968700948180
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