]> git.karo-electronics.de Git - karo-tx-linux.git/commit
oom: use pte pages in OOM score
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Wed, 27 Apr 2011 22:26:50 +0000 (15:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:45 +0000 (09:19 -0700)
commit3ae700492f0839d01ece23c32e9827b05c29a0a2
treed63266987007160bb64b50e399ef56c1a661ed40
parent960b9affa8645e9cfe669295f05a8cd9b8fe77a0
oom: use pte pages in OOM score

commit f755a042d82b51b54f3bdd0890e5ea56c0fb6807 upstream.

PTE pages eat up memory just like anything else, but we do not account for
them in any way in the OOM scores.  They are also _guaranteed_ to get
freed up when a process is OOM killed, while RSS is not.

Reported-by: Dave Hansen <dave@linux.vnet.ibm.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/oom_kill.c