浏览代码

oom: enable oom tasklist dump by default

The oom killer tasklist dump, enabled with the oom_dump_tasks sysctl, is
very helpful information in diagnosing why a user's task has been killed.
It emits useful information such as each eligible thread's memory usage
that can determine why the system is oom, so it should be enabled by
default.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
David Rientjes 15 年之前
父节点
当前提交
ad915c432e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Documentation/sysctl/vm.txt
  2. 1 1
      mm/oom_kill.c

+ 1 - 1
Documentation/sysctl/vm.txt

@@ -511,7 +511,7 @@ information may not be desired.
 If this is set to non-zero, this information is shown whenever the
 If this is set to non-zero, this information is shown whenever the
 OOM killer actually kills a memory-hogging task.
 OOM killer actually kills a memory-hogging task.
 
 
-The default value is 0.
+The default value is 1 (enabled).
 
 
 ==============================================================
 ==============================================================
 
 

+ 1 - 1
mm/oom_kill.c

@@ -32,7 +32,7 @@
 
 
 int sysctl_panic_on_oom;
 int sysctl_panic_on_oom;
 int sysctl_oom_kill_allocating_task;
 int sysctl_oom_kill_allocating_task;
-int sysctl_oom_dump_tasks;
+int sysctl_oom_dump_tasks = 1;
 static DEFINE_SPINLOCK(zone_scan_lock);
 static DEFINE_SPINLOCK(zone_scan_lock);
 /* #define DEBUG */
 /* #define DEBUG */