summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorJohannes Weiner2017-05-03 23:52:45 +0200
committerLinus Torvalds2017-05-04 00:52:08 +0200
commit9a4caf1e9fa4864ce21ba9584a2c336bfbc72740 (patch)
tree6e4ca5d6040d341fa03541e4c7f14279ab620e7f /mm/swapfile.c
parentproc: show MADV_FREE pages info in smaps (diff)
downloadkernel-qcow2-linux-9a4caf1e9fa4864ce21ba9584a2c336bfbc72740.tar.gz
kernel-qcow2-linux-9a4caf1e9fa4864ce21ba9584a2c336bfbc72740.tar.xz
kernel-qcow2-linux-9a4caf1e9fa4864ce21ba9584a2c336bfbc72740.zip
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>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions