login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
February
»
10
Re: [patch 2/7 -mm] oom: sacrifice child with highest badness score for parent
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Rik van Riel
Subject:
Re: [patch 2/7 -mm] oom: sacrifice child with highest badness score for parent
Date: Wednesday, February 10, 2010 - 1:52 pm
On 02/10/2010 11:32 AM, David Rientjes wrote:
quoted text
> When a task is chosen for oom kill, the oom killer first attempts to > sacrifice a child not sharing its parent's memory instead. > Unfortunately, this often kills in a seemingly random fashion based on > the ordering of the selected task's child list. Additionally, it is not > guaranteed at all to free a large amount of memory that we need to > prevent additional oom killing in the very near future. > > Instead, we now only attempt to sacrifice the worst child not sharing its > parent's memory, if one exists. The worst child is indicated with the > highest badness() score. This serves two advantages: we kill a > memory-hogging task more often, and we allow the configurable > /proc/pid/oom_adj value to be considered as a factor in which child to > kill. > > Reviewers may observe that the previous implementation would iterate > through the children and attempt to kill each until one was successful > and then the parent if none were found while the new code simply kills > the most memory-hogging task or the parent. Note that the only time > oom_kill_task() fails, however, is when a child does not have an mm or > has a /proc/pid/oom_adj of OOM_DISABLE. badness() returns 0 for both > cases, so the final oom_kill_task() will always succeed. > > Signed-off-by: David Rientjes<rientjes@google.com>
Acked-by: Rik van Riel <riel@redhat.com> -- All rights reversed. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 0/7 -mm] oom killer rewrite
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 1/7 -mm] oom: filter tasks not sharing the same cpuset
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 2/7 -mm] oom: sacrifice child with highest badness ...
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 3/7 -mm] oom: select task from tasklist for mempoli ...
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 5/7 -mm] oom: replace sysctls with quick mode
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 6/7 -mm] oom: avoid oom killer for lowmem allocations
, David Rientjes
, (Wed Feb 10, 9:32 am)
[patch 7/7 -mm] oom: remove unnecessary code and cleanup
, David Rientjes
, (Wed Feb 10, 9:32 am)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, Rik van Riel
, (Wed Feb 10, 10:08 am)
Re: [patch 2/7 -mm] oom: sacrifice child with highest badn ...
, Rik van Riel
, (Wed Feb 10, 1:52 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, Rik van Riel
, (Wed Feb 10, 3:47 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Rik van Riel
, (Wed Feb 10, 9:10 pm)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, Rik van Riel
, (Wed Feb 10, 9:13 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Thu Feb 11, 2:14 am)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, David Rientjes
, (Thu Feb 11, 2:19 am)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, Rik van Riel
, (Thu Feb 11, 7:08 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Nick Bowler
, (Thu Feb 11, 8:07 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Thu Feb 11, 2:01 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Andrew Morton
, (Thu Feb 11, 2:43 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Thu Feb 11, 2:51 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Andrew Morton
, (Thu Feb 11, 3:31 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Thu Feb 11, 3:42 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Andrew Morton
, (Thu Feb 11, 4:11 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Thu Feb 11, 4:31 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Andrew Morton
, (Thu Feb 11, 4:37 pm)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, KAMEZAWA Hiroyuki
, (Thu Feb 11, 4:52 pm)
Re: [patch 2/7 -mm] oom: sacrifice child with highest badn ...
, KAMEZAWA Hiroyuki
, (Thu Feb 11, 5:00 pm)
Re: [patch 7/7 -mm] oom: remove unnecessary code and cleanup
, KAMEZAWA Hiroyuki
, (Thu Feb 11, 5:12 pm)
Re: [patch 2/7 -mm] oom: sacrifice child with highest badn ...
, David Rientjes
, (Thu Feb 11, 5:15 pm)
Re: [patch 7/7 -mm] oom: remove unnecessary code and cleanup
, David Rientjes
, (Thu Feb 11, 5:21 pm)
Re: [patch 5/7 -mm] oom: replace sysctls with quick mode
, KAMEZAWA Hiroyuki
, (Thu Feb 11, 5:26 pm)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, KAMEZAWA Hiroyuki
, (Thu Feb 11, 6:28 pm)
Re: [patch 5/7 -mm] oom: replace sysctls with quick mode
, David Rientjes
, (Fri Feb 12, 2:58 am)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, David Rientjes
, (Fri Feb 12, 3:06 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Minchan Kim
, (Fri Feb 12, 6:56 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Fri Feb 12, 2:00 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Minchan Kim
, (Fri Feb 12, 7:45 pm)
Re: [patch 2/7 -mm] oom: sacrifice child with highest badn ...
, Minchan Kim
, (Fri Feb 12, 7:49 pm)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, KAMEZAWA Hiroyuki
, (Sun Feb 14, 5:09 pm)
Re: [patch 0/7 -mm] oom killer rewrite
, KOSAKI Motohiro
, (Sun Feb 14, 7:51 pm)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, KOSAKI Motohiro
, (Sun Feb 14, 7:56 pm)
Re: [patch 2/7 -mm] oom: sacrifice child with highest badn ...
, KOSAKI Motohiro
, (Sun Feb 14, 8:08 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, KOSAKI Motohiro
, (Sun Feb 14, 10:03 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, KOSAKI Motohiro
, (Mon Feb 15, 1:05 am)
Re: [patch 5/7 -mm] oom: replace sysctls with quick mode
, KOSAKI Motohiro
, (Mon Feb 15, 1:09 am)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, KOSAKI Motohiro
, (Mon Feb 15, 1:29 am)
Re: [patch 7/7 -mm] oom: remove unnecessary code and cleanup
, KOSAKI Motohiro
, (Mon Feb 15, 1:31 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Mon Feb 15, 2:54 pm)
Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem alloc ...
, David Rientjes
, (Mon Feb 15, 3:01 pm)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, David Rientjes
, (Mon Feb 15, 3:06 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, David Rientjes
, (Mon Feb 15, 3:11 pm)
Re: [patch 5/7 -mm] oom: replace sysctls with quick mode
, David Rientjes
, (Mon Feb 15, 3:15 pm)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, KOSAKI Motohiro
, (Mon Feb 15, 9:52 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, KOSAKI Motohiro
, (Mon Feb 15, 10:15 pm)
Re: [patch 5/7 -mm] oom: replace sysctls with quick mode
, KOSAKI Motohiro
, (Mon Feb 15, 10:25 pm)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, KOSAKI Motohiro
, (Mon Feb 15, 11:01 pm)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, Nick Piggin
, (Tue Feb 16, 12:03 am)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, David Rientjes
, (Tue Feb 16, 1:46 am)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, David Rientjes
, (Tue Feb 16, 1:49 am)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, Nick Piggin
, (Tue Feb 16, 2:04 am)
Re: [patch 5/7 -mm] oom: replace sysctls with quick mode
, David Rientjes
, (Tue Feb 16, 2:04 am)
Re: [patch 1/7 -mm] oom: filter tasks not sharing the same ...
, David Rientjes
, (Tue Feb 16, 2:10 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Minchan Kim
, (Tue Feb 16, 6:14 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Tue Feb 16, 2:41 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, David Rientjes
, (Tue Feb 16, 2:52 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, David Rientjes
, (Tue Feb 16, 5:48 pm)
Re: [patch 3/7 -mm] oom: select task from tasklist for mem ...
, KOSAKI Motohiro
, (Tue Feb 16, 6:13 pm)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Minchan Kim
, (Wed Feb 17, 12:41 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, David Rientjes
, (Wed Feb 17, 2:23 am)
Re: [patch 4/7 -mm] oom: badness heuristic rewrite
, Minchan Kim
, (Wed Feb 17, 6:08 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Pekka Enberg
Re: BUG in free_block (tainted)
Jakub Narebski
Re: [PATCH] gitweb: Fix shortlog only showing HEAD revision.
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Patrick McHardy
Re: [PATCH RESEND 1/3] netfilter: xtables: inclusion of xt_condition
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
ALSA: snd-usb-caiaq: Do not expose hardware input mode 0 of A4DJ
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
openbsd-misc
:
Conor
Re: RFID Reader
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
Ryan McBride
Re: Packets Per Second Limit?
Colocation donated by:
Syndicate