]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: provide shmem statistics
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 May 2017 21:52:45 +0000 (14:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 May 2017 22:52:08 +0000 (15:52 -0700)
commit85f2e5c6964f35d0ca8921dc916b00cb07cfc8ac
tree6e4ca5d6040d341fa03541e4c7f14279ab620e7f
parent20b99656eb69984348012fdf56b2a6afaad8a5c1
mm: memcontrol: provide shmem statistics

Cgroups currently don't report how much shmem they use, which can be
useful data to have, in particular since shmem is included in the
cache/file item while being reclaimed like anonymous memory.

Add a counter to track shmem pages during charging and uncharging.

Link: http://lkml.kernel.org/r/20170221164343.32252-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reported-by: Chris Down <cdown@fb.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/cgroup-v2.txt
include/linux/memcontrol.h
mm/memcontrol.c