]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] out of memory notifier
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 26 Sep 2006 06:31:20 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:47 +0000 (08:48 -0700)
commit2e703d4622aefa84c2bfb8f2cd2c3c7a988e454b
tree1afd4ce7865466bf9578ca746c63c1d351f07cdc
parent77e442ec161e5bb3bbad1f9018e206cff1906d0b
[PATCH] out of memory notifier

Add a notifer chain to the out of memory killer.  If one of the registered
callbacks could release some memory, do not kill the process but return and
retry the allocation that forced the oom killer to run.

The purpose of the notifier is to add a safety net in the presence of
memory ballooners.  If the resource manager inflated the balloon to a size
where memory allocations can not be satisfied anymore, it is better to
deflate the balloon a bit instead of killing processes.

The implementation for the s390 ballooner is included.

[akpm@osdl.org: cleanups]
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/mm/cmm.c
include/linux/swap.h
mm/oom_kill.c