]> Git Repo - linux.git/commit
x86,mm: make pagefault killable
authorKOSAKI Motohiro <[email protected]>
Wed, 25 May 2011 00:11:30 +0000 (17:11 -0700)
committerLinus Torvalds <[email protected]>
Wed, 25 May 2011 15:39:08 +0000 (08:39 -0700)
commit37b23e0525d393d48a7d59f870b3bc061a30ccdb
tree467e6fcd785108a21d836e1aad8fc1a68aa72e17
parentf62e00cc3a00bfbd394a79fc22b334c31f91bd5f
x86,mm: make pagefault killable

When an oom killing occurs, almost all processes are getting stuck at the
following two points.

1) __alloc_pages_nodemask
2) __lock_page_or_retry

1) is not very problematic because TIF_MEMDIE leads to an allocation
failure and getting out from page allocator.

2) is more problematic.  In an OOM situation, zones typically don't have
page cache at all and memory starvation might lead to greatly reduced IO
performance.  When a fork bomb occurs, TIF_MEMDIE tasks don't die quickly,
meaning that a fork bomb may create new process quickly rather than the
oom-killer killing it.  Then, the system may become livelocked.

This patch makes the pagefault interruptible by SIGKILL.

Signed-off-by: KOSAKI Motohiro <[email protected]>
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/mm/fault.c
include/linux/mm.h
mm/filemap.c
This page took 0.059592 seconds and 4 git commands to generate.