[Devel] [PATCH RH9 04/33] oom: do not dump all tasks info on each oom kill

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Sep 23 22:08:07 MSK 2021


From: Vladimir Davydov <vdavydov at parallels.com>

It will only spam dmesg on oom inside a container, so disable it by
default as it used to be in PCS6.

Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
Reviewed-by: Kirill Tkhai <ktkhai at odin.com>

(cherry picked from vz8 commit 34a56ac2c3bd06751e83f66d9ac2e9f13cc2515a)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 mm/oom_kill.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 3357763..900ffef 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -54,7 +54,7 @@
 
 int sysctl_panic_on_oom;
 int sysctl_oom_kill_allocating_task;
-int sysctl_oom_dump_tasks = 1;
+int sysctl_oom_dump_tasks;
 
 /*
  * Serializes oom killer invocations (out_of_memory()) from all contexts to
-- 
1.8.3.1



More information about the Devel mailing list