diff options
author | Andy Lutomirski <[email protected]> | 2016-07-28 15:48:17 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-07-28 16:07:41 -0700 |
commit | efdc94907977d2db84b4b00cb9bd98ca011f6819 (patch) | |
tree | 9cccfb94330085fbc897f219bca95135c18765db /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d30dd8be06a5ae640766b20ea9ae288832bd12ac (diff) |
mm: fix memcg stack accounting for sub-page stacks
We should account for stacks regardless of stack size, and we need to
account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the units
to kilobytes and Move it into account_kernel_stack().
Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 memory.stat")
Link: http://lkml.kernel.org/r/9b5314e3ee5eda61b0317ec1563768602c1ef438.1468523549.git.luto@kernel.org
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Reviewed-by: Josh Poimboeuf <[email protected]>
Reviewed-by: Vladimir Davydov <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions