linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: be more informative in OOM task list
@ 2018-07-01 16:09 Rodrigo Freire
  2018-07-02  9:30 ` Michal Hocko
  2018-07-04  1:34 ` David Rientjes
  0 siblings, 2 replies; 7+ messages in thread
From: Rodrigo Freire @ 2018-07-01 16:09 UTC (permalink / raw)
  To: linux-mm; +Cc: linux-kernel

The default page memory unit of OOM task dump events might not be
intuitive for the non-initiated when debugging OOM events. Add
a small printk prior to the task dump informing that the memory
units are actually memory _pages_.

Signed-off-by: Rodrigo Freire <rfreire@redhat.com>
---
 mm/oom_kill.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 84081e7..b4d9557 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -392,6 +392,7 @@ static void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask)
 	struct task_struct *p;
 	struct task_struct *task;
 
+	pr_info("Tasks state (memory values in pages):\n");
 	pr_info("[ pid ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name\n");
 	rcu_read_lock();
 	for_each_process(p) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-04 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-01 16:09 [PATCH] mm: be more informative in OOM task list Rodrigo Freire
2018-07-02  9:30 ` Michal Hocko
2018-07-02 11:22   ` Rodrigo Freire
2018-07-02 11:29     ` Michal Hocko
2018-07-02 11:39       ` Rodrigo Freire
2018-07-04  1:34 ` David Rientjes
2018-07-04 14:36   ` Rafael Aquini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).