-
- Downloads
mm: memcontrol: account kernel stack per node
Currently the kernel stack is being accounted per-zone. There is no need to do that. In addition due to being per-zone, memcg has to keep a separate MEMCG_KERNEL_STACK_KB. Make the stat per-node and deprecate MEMCG_KERNEL_STACK_KB as memcg_stat_item is an extension of node_stat_item. In addition localize the kernel stack stats updates to account_kernel_stack(). Signed-off-by:Shakeel Butt <shakeelb@google.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Reviewed-by:
Roman Gushchin <guro@fb.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Link: http://lkml.kernel.org/r/20200630161539.1759185-1-shakeelb@google.com Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/base/node.c 2 additions, 2 deletionsdrivers/base/node.c
- fs/proc/meminfo.c 2 additions, 2 deletionsfs/proc/meminfo.c
- include/linux/memcontrol.h 19 additions, 2 deletionsinclude/linux/memcontrol.h
- include/linux/mmzone.h 4 additions, 4 deletionsinclude/linux/mmzone.h
- kernel/fork.c 14 additions, 37 deletionskernel/fork.c
- kernel/scs.c 1 addition, 1 deletionkernel/scs.c
- mm/memcontrol.c 1 addition, 1 deletionmm/memcontrol.c
- mm/page_alloc.c 8 additions, 8 deletionsmm/page_alloc.c
- mm/vmstat.c 4 additions, 4 deletionsmm/vmstat.c
Loading
Please register or sign in to comment