diff options
| author | Yong Wang <[email protected]> | 2023-11-23 18:40:18 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-10 16:51:53 -0800 |
| commit | 27873192ac5938bfa9d27348d79b931e5b438ba6 (patch) | |
| tree | abc8046df2b1cb936b304e965aeff80fb00ebe60 /tools/perf/scripts/python/bin | |
| parent | 7679e14098c9c3c8118a7130d6e1e9cfe2565c04 (diff) | |
mm, oom:dump_tasks add rss detailed information printing
When the system is under oom, it prints out the RSS information of each
process. However, we don't know the size of rss_anon, rss_file, and
rss_shmem.
To distinguish the memory occupied by anonymous or file mappings
or shmem, could help us identify the root cause of the oom.
So this patch adds RSS details, which refers to the /proc/<pid>/status[1].
It can help us know more about process memory usage.
Example of oom including the new rss_* fields:
[ 1630.902466] Tasks state (memory values in pages):
[ 1630.902870] [ pid ] uid tgid total_vm rss rss_anon rss_file rss_shmem pgtables_bytes swapents oom_score_adj name
[ 1630.903619] [ 149] 0 149 486 288 0 288 0 36864 0 0 ash
[ 1630.904210] [ 156] 0 156 153531 153345 153345 0 0 1269760 0 0 mm_test
[1] commit 8cee852ec53f ("mm, procfs: breakdown RSS for anon, shmem and file in /proc/pid/status").
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yong Wang <[email protected]>
Reviewed-by: Yang Yang <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Xuexin Jiang <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions