aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2019-07-12 04:00:23 +0000
committerLinus Torvalds <[email protected]>2019-07-12 18:05:47 +0000
commit5eee7e1cdb97123bb55ac14ccd3af8b6edc31537 (patch)
tree599719a7a9b06d61532fe62b8c4dab76165ba624 /tools/perf/scripts/python/export-to-sqlite.py
parentmm: memcontrol: use CSS_TASK_ITER_PROCS at mem_cgroup_scan_tasks() (diff)
downloadkernel-5eee7e1cdb97123bb55ac14ccd3af8b6edc31537.tar.gz
kernel-5eee7e1cdb97123bb55ac14ccd3af8b6edc31537.zip
mm, oom: refactor dump_tasks for memcg OOMs
dump_tasks() traverses all the existing processes even for the memcg OOM context which is not only unnecessary but also wasteful. This imposes a long RCU critical section even from a contained context which can be quite disruptive. Change dump_tasks() to be aligned with select_bad_process and use mem_cgroup_scan_tasks to selectively traverse only processes of the target memcg hierarchy during memcg OOM. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Shakeel Butt <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Roman Gushchin <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Tetsuo Handa <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: David Rientjes <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Paul Jackson <[email protected]> Cc: Nick Piggin <[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-sqlite.py')
0 files changed, 0 insertions, 0 deletions