[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <790da5ffebf18a5a1211ad8dbe4e5b4a19871408.1755190013.git.pyyjason@gmail.com>
Date: Thu, 14 Aug 2025 10:11:57 -0700
From: Yueyang Pan <pyyjason@...il.com>
To: Suren Baghdasaryan <surenb@...gle.com>,
Kent Overstreet <kent.overstreet@...ux.dev>,
Usama Arif <usamaarif642@...il.com>
Cc: linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [RFC 1/1] Add memory allocation info for cgroup oom
Enable show_mem for the cgroup oom case. We will have memory allocation
information in such case for the machine.
Signed-off-by: Yueyang Pan <pyyjason@...il.com>
---
mm/oom_kill.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 17650f0b516e..3ca224028396 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -465,8 +465,10 @@ static void dump_header(struct oom_control *oc)
pr_warn("COMPACTION is disabled!!!\n");
dump_stack();
- if (is_memcg_oom(oc))
+ if (is_memcg_oom(oc)) {
mem_cgroup_print_oom_meminfo(oc->memcg);
+ show_mem();
+ }
else {
__show_mem(SHOW_MEM_FILTER_NODES, oc->nodemask, gfp_zone(oc->gfp_mask));
if (should_dump_unreclaim_slab())
--
2.47.3
Powered by blists - more mailing lists