login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
17
Re: [PATCH 3/9] oom: oom_kill_process() doesn't select kthread child
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KOSAKI Motohiro
Subject:
Re: [PATCH 3/9] oom: oom_kill_process() doesn't select kthread child
Date: Wednesday, June 16, 2010 - 6:51 pm
> On Wed, Jun 16, 2010 at 08:32:08PM +0900, KOSAKI Motohiro wrote:
quoted text
> > Now, select_bad_process() have PF_KTHREAD check, but oom_kill_process > > doesn't. It mean oom_kill_process() may choose wrong task, especially, > > when the child are using use_mm(). > Now oom_kill_process is called by three place. > > 1. mem_cgroup_out_of_memory > 2. out_of_memory with sysctl_oom_kill_allocating_task > 3. out_of_memory with non-sysctl_oom_kill_allocating_task > > I think it's no problem in 1 and 3 since select_bad_process already checks > PF_KTHREAD. The problem in in 2. > So How about put the check before calling oom_kill_process in case of > sysctl_oom_kill_allocating task? > > if (sysctl_oom_kill_allocating_task) { > if (!current->flags & PF_KTHREAD) > oom_kill_process(); > > It can remove duplicated PF_KTHREAD check in select_bad_process and > oom_kill_process.
This patch changed child selection logic. select_bad_process() doesn't check victim's child. IOW, this is necessary when all 1-3. --
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 1/9] oom: don't try to kill oom_unkillable child
, KOSAKI Motohiro
, (Wed Jun 16, 4:29 am)
[PATCH 2/9] oom: rename badness() to oom_badness()
, KOSAKI Motohiro
, (Wed Jun 16, 4:31 am)
[PATCH 3/9] oom: oom_kill_process() doesn't select kthread ...
, KOSAKI Motohiro
, (Wed Jun 16, 4:32 am)
[PATCH 4/9] oom: oom_kill_process() need to check p is unk ...
, KOSAKI Motohiro
, (Wed Jun 16, 4:32 am)
[PATCH 5/9] oom: make oom_unkillable_task() helper function
, KOSAKI Motohiro
, (Wed Jun 16, 4:33 am)
[PATCH 6/9] oom: use same_thread_group instead comparing ->mm
, KOSAKI Motohiro
, (Wed Jun 16, 4:34 am)
[PATCH 7/9] oom: unify CAP_SYS_RAWIO check into other supe ...
, KOSAKI Motohiro
, (Wed Jun 16, 4:34 am)
[PATCH 8/9] oom: cleanup has_intersects_mems_allowed()
, KOSAKI Motohiro
, (Wed Jun 16, 4:35 am)
[PATCH 9/9] oom: give the dying task a higher priority
, KOSAKI Motohiro
, (Wed Jun 16, 4:36 am)
Re: [PATCH 6/9] oom: use same_thread_group instead compari ...
, Oleg Nesterov
, (Wed Jun 16, 5:24 am)
Re: [PATCH 1/9] oom: don't try to kill oom_unkillable child
, Minchan Kim
, (Wed Jun 16, 7:41 am)
Re: [PATCH 2/9] oom: rename badness() to oom_badness()
, Minchan Kim
, (Wed Jun 16, 7:46 am)
Re: [PATCH 3/9] oom: oom_kill_process() doesn't select kth ...
, Minchan Kim
, (Wed Jun 16, 8:02 am)
Re: [PATCH 4/9] oom: oom_kill_process() need to check p is ...
, Minchan Kim
, (Wed Jun 16, 8:07 am)
Re: [PATCH 5/9] oom: make oom_unkillable_task() helper fun ...
, Minchan Kim
, (Wed Jun 16, 8:10 am)
Re: [PATCH 6/9] oom: use same_thread_group instead compari ...
, Minchan Kim
, (Wed Jun 16, 8:15 am)
Re: [PATCH 8/9] oom: cleanup has_intersects_mems_allowed()
, Minchan Kim
, (Wed Jun 16, 8:22 am)
Re: [PATCH 9/9] oom: give the dying task a higher priority
, Minchan Kim
, (Wed Jun 16, 8:31 am)
Re: [PATCH 9/9] oom: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Wed Jun 16, 12:54 pm)
Re: [PATCH 2/9] oom: rename badness() to oom_badness()
, David Rientjes
, (Wed Jun 16, 2:40 pm)
Re: [PATCH 3/9] oom: oom_kill_process() doesn't select kth ...
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 6/9] oom: use same_thread_group instead compari ...
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 4/9] oom: oom_kill_process() need to check p is ...
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 9/9] oom: give the dying task a higher priority
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 9/9] oom: give the dying task a higher priority
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 1/9] oom: don't try to kill oom_unkillable child
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 2/9] oom: rename badness() to oom_badness()
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Re: [PATCH 6/9] oom: use same_thread_group instead compari ...
, KOSAKI Motohiro
, (Wed Jun 16, 6:51 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Francis Moreau
Re: Disk geometry from /sys
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Casey Schaufler
Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Petko Manolov
git and binary files
Lynn Lin
Re: clearcase migration to git
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate