]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: Revert "memcg: add memory.vmscan_stat"
authorJohannes Weiner <jweiner@redhat.com>
Wed, 14 Sep 2011 23:21:58 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 01:09:38 +0000 (18:09 -0700)
commitb2e7b0a615e9dcefde3f0f2c1bfaeeb2f3962f3b
tree9330dac6b7f17fad7d99e444b3544210109e2d99
parent2a93ad6e30646ddaff4c8136e144cc662864b39c
memcg: Revert "memcg: add memory.vmscan_stat"

Revert the post-3.0 commit d2cc15ad0fb35 ("memcg: add
memory.vmscan_stat").

The implementation of per-memcg reclaim statistics violates how memcg
hierarchies usually behave: hierarchically.

The reclaim statistics are accounted to child memcgs and the parent
hitting the limit, but not to hierarchy levels in between.  Usually,
hierarchical statistics are perfectly recursive, with each level
representing the sum of itself and all its children.

Since this exports statistics to userspace, this may lead to confusion
and problems with changing things after the release, so revert it now,
we can try again later.

Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Ying Han <yinghan@google.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/cgroups/memory.txt
include/linux/memcontrol.h
include/linux/swap.h
mm/memcontrol.c
mm/vmscan.c