]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: account pagetables per node
authorShakeel Butt <shakeelb@google.com>
Tue, 15 Dec 2020 03:07:17 +0000 (19:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2020 20:13:40 +0000 (12:13 -0800)
commit20bcabc0dc68dda212fed9299a96d66d126eaa98
treed79b95a92ea1b8fe4723973b5fe73b8199807b52
parent9a28219fcf81222d8679b98c7aaaa12894bb823a
mm: memcontrol: account pagetables per node

For many workloads, pagetable consumption is significant and it makes
sense to expose it in the memory.stat for the memory cgroups.  However at
the moment, the pagetables are accounted per-zone.  Converting them to
per-node and using the right interface will correctly account for the
memory cgroups as well.

[akpm@linux-foundation.org: export __mod_lruvec_page_state to modules for arch/mips/kvm/]

Link: https://lkml.kernel.org/r/20201130212541.2781790-3-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Roman Gushchin <guro@fb.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/admin-guide/cgroup-v2.rst
arch/nds32/mm/mm-nds32.c
drivers/base/node.c
fs/proc/meminfo.c
include/linux/mm.h
include/linux/mmzone.h
mm/memcontrol.c
mm/page_alloc.c
mm/vmstat.c