diff options
author | David Rientjes <rientjes@google.com> | 2008-02-07 03:14:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:19 -0500 |
commit | fef1bdd68c81b71882ccb6f47c70980a03182063 (patch) | |
tree | 4cfa5c2c10787a3d54de05ca511db31730a239fd /Documentation | |
parent | 4c4a22148909e4c003562ea7ffe0a06e26919e3c (diff) |
oom: add sysctl to enable task memory dump
Adds a new sysctl, 'oom_dump_tasks', that enables the kernel to produce a
dump of all system tasks (excluding kernel threads) when performing an
OOM-killing. Information includes pid, uid, tgid, vm size, rss, cpu,
oom_adj score, and name.
This is helpful for determining why there was an OOM condition and which
rogue task caused it.
It is configurable so that large systems, such as those with several
thousand tasks, do not incur a performance penalty associated with dumping
data they may not desire.
If an OOM was triggered as a result of a memory controller, the tasklist
shall be filtered to exclude tasks that are not a member of the same
cgroup.
Cc: Andrea Arcangeli <andrea@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/sysctl/vm.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt index 24eac1bc735d..8a4863c4edd4 100644 --- a/Documentation/sysctl/vm.txt +++ b/Documentation/sysctl/vm.txt | |||
@@ -32,6 +32,7 @@ Currently, these files are in /proc/sys/vm: | |||
32 | - min_unmapped_ratio | 32 | - min_unmapped_ratio |
33 | - min_slab_ratio | 33 | - min_slab_ratio |
34 | - panic_on_oom | 34 | - panic_on_oom |
35 | - oom_dump_tasks | ||
35 | - oom_kill_allocating_task | 36 | - oom_kill_allocating_task |
36 | - mmap_min_address | 37 | - mmap_min_address |
37 | - numa_zonelist_order | 38 | - numa_zonelist_order |
@@ -232,6 +233,27 @@ according to your policy of failover. | |||
232 | 233 | ||
233 | ============================================================= | 234 | ============================================================= |
234 | 235 | ||
236 | oom_dump_tasks | ||
237 | |||
238 | Enables a system-wide task dump (excluding kernel threads) to be | ||
239 | produced when the kernel performs an OOM-killing and includes such | ||
240 | information as pid, uid, tgid, vm size, rss, cpu, oom_adj score, and | ||
241 | name. This is helpful to determine why the OOM killer was invoked | ||
242 | and to identify the rogue task that caused it. | ||
243 | |||
244 | If this is set to zero, this information is suppressed. On very | ||
245 | large systems with thousands of tasks it may not be feasible to dump | ||
246 | the memory state information for each one. Such systems should not | ||
247 | be forced to incur a performance penalty in OOM conditions when the | ||
248 | information may not be desired. | ||
249 | |||
250 | If this is set to non-zero, this information is shown whenever the | ||
251 | OOM killer actually kills a memory-hogging task. | ||
252 | |||
253 | The default value is 0. | ||
254 | |||
255 | ============================================================= | ||
256 | |||
235 | oom_kill_allocating_task | 257 | oom_kill_allocating_task |
236 | 258 | ||
237 | This enables or disables killing the OOM-triggering task in | 259 | This enables or disables killing the OOM-triggering task in |