]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: do not account memory used for cache creation
authorGlauber Costa <glommer@gmail.com>
Wed, 19 Jun 2013 00:06:59 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:52 +0000 (17:26 +1000)
commit06d819cdf03b6fcabbc8c4a2534916c1cf05e23c
tree2e66b6e1d58020ed5052a95c62f033d44b5a8067
parent26f549022d46de724e2cb83e425248c875d9c308
memcg: do not account memory used for cache creation

The memory we used to hold the memcg arrays is currently accounted to the
current memcg.  But that creates a problem, because that memory can only
be freed after the last user is gone.  Our only way to know which is the
last user, is to hook up to freeing time, but the fact that we still have
some in flight kmallocs will prevent freeing to happen.  I believe
therefore to be just easier to account this memory as global overhead.

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