Thread (4 messages) 4 messages, 4 authors, 2012-02-25

Re: [patch] mm, oom: force oom kill on sysrq+f

From: Pekka Enberg <penberg@kernel.org>
Date: 2012-02-23 18:03:58

On Thu, Feb 23, 2012 at 7:20 PM, KOSAKI Motohiro
[off-list ref] wrote:
On 2/22/2012 7:03 PM, David Rientjes wrote:
quoted
The oom killer chooses not to kill a thread if:

 - an eligible thread has already been oom killed and has yet to exit,
   and

 - an eligible thread is exiting but has yet to free all its memory and
   is not the thread attempting to currently allocate memory.

SysRq+F manually invokes the global oom killer to kill a memory-hogging
task.  This is normally done as a last resort to free memory when no
progress is being made or to test the oom killer itself.

For both uses, we always want to kill a thread and never defer.  This
patch causes SysRq+F to always kill an eligible thread and can be used to
force a kill even if another oom killed thread has failed to exit.

Signed-off-by: David Rientjes <rientjes@google.com>
I have similar patch. This is very sane idea.
       Acked-by: KOSAKI Motohiro [off-list ref]
Acked-by: Pekka Enberg <penberg@kernel.org>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help