mm: memcontrol: add "sock" to cgroup2 memory.stat
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 20 Jan 2016 23:03:22 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commitb2807f07f4f87362925b8a5b8cbb7b624da10f03
treee0ecb241a359fdca288bb1a3e8fb964a453b074b
parent587d9f726aaec52157e4156e50363dbe6cb82bdb
mm: memcontrol: add "sock" to cgroup2 memory.stat

Provide statistics on how much of a cgroup's memory footprint is made up
of socket buffers from network connections owned by the group.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c