Commit ad915c43 authored by David Rientjes's avatar David Rientjes Committed by Linus Torvalds

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: default avatarDavid Rientjes <rientjes@google.com>
Acked-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6f48d0eb
...@@ -511,7 +511,7 @@ information may not be desired. ...@@ -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).
============================================================== ==============================================================
......
...@@ -32,7 +32,7 @@ ...@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment