[PATCH 05/10] oom: enable oom tasklist dump by default

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOSAKI Motohiro
Date: Tuesday, June 8, 2010 - 4:58 am

From: David Rientjes <rientjes@google.com>

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>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
---
 Documentation/sysctl/vm.txt |    2 +-
 mm/oom_kill.c               |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index 5fdbb61..3936b61 100644
--- a/Documentation/sysctl/vm.txt
+++ b/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
 OOM killer actually kills a memory-hogging task.
 
-The default value is 0.
+The default value is 1 (enabled).
 
 ==============================================================
 
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 80492ff..b88172c 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -31,7 +31,7 @@
 
 int sysctl_panic_on_oom;
 int sysctl_oom_kill_allocating_task;
-int sysctl_oom_dump_tasks;
+int sysctl_oom_dump_tasks = 1;
 static DEFINE_SPINLOCK(zone_scan_lock);
 /* #define DEBUG */
 
-- 
1.6.5.2



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[0/10] 3rd pile of OOM patch series , KOSAKI Motohiro, (Tue Jun 8, 4:53 am)
[PATCH 01/10] oom: don't try to kill oom_unkillable child, KOSAKI Motohiro, (Tue Jun 8, 4:54 am)
[PATCH 03/10] oom: rename badness() to oom_badness(), KOSAKI Motohiro, (Tue Jun 8, 4:56 am)
[PATCH 04/10] oom: move sysctl declarations to oom.h, KOSAKI Motohiro, (Tue Jun 8, 4:57 am)
[PATCH 05/10] oom: enable oom tasklist dump by default, KOSAKI Motohiro, (Tue Jun 8, 4:58 am)
[PATCH 06/10] oom: cleanup has_intersects_mems_allowed(), KOSAKI Motohiro, (Tue Jun 8, 4:59 am)
[PATCH 07/10] oom: kill useless debug print, KOSAKI Motohiro, (Tue Jun 8, 4:59 am)
[PATCH 08/10] oom: use send_sig() instead force_sig(), KOSAKI Motohiro, (Tue Jun 8, 5:01 am)
Re: [PATCH 08/10] oom: use send_sig() instead force_sig(), Oleg Nesterov, (Tue Jun 8, 11:41 am)
Re: [PATCH 07/10] oom: kill useless debug print, David Rientjes, (Tue Jun 8, 12:01 pm)
Re: [PATCH 03/10] oom: rename badness() to oom_badness(), David Rientjes, (Tue Jun 8, 12:09 pm)
[PATCH 0/1] signals: introduce send_sigkill() helper, Oleg Nesterov, (Wed Jun 9, 5:59 pm)
[PATCH 1/1] signals: introduce send_sigkill() helper, Oleg Nesterov, (Wed Jun 9, 6:00 pm)
Re: [PATCH 1/1] signals: introduce send_sigkill() helper, KAMEZAWA Hiroyuki, (Thu Jun 10, 5:40 pm)
Re: [PATCH 08/10] oom: use send_sig() instead force_sig(), KOSAKI Motohiro, (Sun Jun 13, 4:24 am)
Re: [PATCH 1/1] signals: introduce send_sigkill() helper, KOSAKI Motohiro, (Sun Jun 13, 4:24 am)
Re: [PATCH 1/1] signals: introduce send_sigkill() helper, Oleg Nesterov, (Sun Jun 13, 8:29 am)
Re: [PATCH 1/1] signals: introduce send_sigkill() helper, KOSAKI Motohiro, (Wed Jun 16, 3:00 am)