[PATCH] mm: quieten OOM killer noise
authorAnton Blanchard <anton@samba.org>
Fri, 8 Jul 2005 00:56:06 +0000 (17:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:36 +0000 (18:23 -0700)
commit42639269f9ce4aac2e6c20bcbca30b5da8b9a899
tree1583ac4da9d2e40669d4579e338d8e506dedba5a
parent37b173a4d03d1681e6c9529bc43d7a3308132db6
[PATCH] mm: quieten OOM killer noise

We now print statistics when invoking the OOM killer, however this
information is not rate limited and you can get into situations where the
console is continually spammed.

For example, when a task is exiting the OOM killer will simply return
(waiting for that task to exit and clear up memory).  If the VM continually
calls back into the OOM killer we get thousands of copies of show_mem() on
the console.

Use printk_ratelimit() to quieten it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/oom_kill.c