]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
memcg: never OOM when charging huge pages
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 1 Feb 2011 23:52:44 +0000 (15:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Feb 2011 00:03:19 +0000 (16:03 -0800)
commit8493ae439f7038b502df1d687e61dde54c27ca92
treeba8dafa7eb3292c8d2ca4597ef6f2f06c7dcd6a6
parent19942822df65ee4a47c2e6d6d70cace1b7f01710
memcg: never OOM when charging huge pages

Huge page coverage should obviously have less priority than the continued
execution of a process.

Never kill a process when charging it a huge page fails.  Instead, give up
after the first failed reclaim attempt and fall back to regular pages.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c