]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: debugging facility to access dangling memcgs
authorGlauber Costa <glommer@parallels.com>
Wed, 20 Mar 2013 04:07:30 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:55 +0000 (16:33 +1100)
commit4d34ab5e2f86812c1ea69c4c8658c7a0b492c08e
tree7beaa67ac5f0fb99c63bff47ae84e439b11ef4a9
parent7aca1c8e4fa5de0e41306b2c1b11324d30ecf152
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