Commit ad915c432eccb482427c1bbd77c74e6f7bfe60b3

Authored by David Rientjes
Committed by Linus Torvalds
1 parent 6f48d0ebd9

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

Documentation/sysctl/vm.txt
... ... @@ -511,7 +511,7 @@
511 511 If this is set to non-zero, this information is shown whenever the
512 512 OOM killer actually kills a memory-hogging task.
513 513  
514   -The default value is 0.
  514 +The default value is 1 (enabled).
515 515  
516 516 ==============================================================
517 517  
... ... @@ -32,7 +32,7 @@
32 32  
33 33 int sysctl_panic_on_oom;
34 34 int sysctl_oom_kill_allocating_task;
35   -int sysctl_oom_dump_tasks;
  35 +int sysctl_oom_dump_tasks = 1;
36 36 static DEFINE_SPINLOCK(zone_scan_lock);
37 37 /* #define DEBUG */
38 38