]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: debugging facility to access dangling memcgs
authorGlauber Costa <glommer@parallels.com>
Thu, 7 Feb 2013 01:27:14 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:56 +0000 (16:46 +1100)
commit56e1b7e21ce64e47609ebed8a490cac2ddb3209d
tree5e6a5d58d1cf71d7b10d18514bcb20ea11c05b77
parentc2107008479b40898680da8b65b26939752d317f
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