login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
31
Re: [RFC] oom-kill: give the dying task a higher priority
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KAMEZAWA Hiroyuki
Subject:
Re: [RFC] oom-kill: give the dying task a higher priority
Date: Sunday, May 30, 2010 - 5:21 pm
On Fri, 28 May 2010 13:48:26 -0300 "Luis Claudio R. Goncalves" <lclaudio@uudg.org> wrote:
quoted text
> On Sat, May 29, 2010 at 12:45:49AM +0900, Minchan Kim wrote: > | On Fri, May 28, 2010 at 12:28:42PM -0300, Luis Claudio R. Goncalves wrote: > | > On Sat, May 29, 2010 at 12:12:49AM +0900, Minchan Kim wrote: > ... > | > | I think highest RT proirity ins't good solution. > | > | As I mentiond, Some RT functions don't want to be preempted by other processes > | > | which cause memory pressure. It makes RT task broken. > | > > | > For the RT case, if you reached a system OOM situation, your determinism has > | > already been hurt. If the memcg OOM happens on the same memcg your RT task > | > is - what will probably be the case most of time - again, the determinism > | > has deteriorated. For both these cases, giving the dying task SCHED_FIFO > | > MAX_RT_PRIO-1 means a faster recovery. > | > | What I want to say is that determinisic has no relation with OOM. > | Why is some RT task affected by other process's OOM? > | > | Of course, if system has no memory, it is likely to slow down RT task. > | But it's just only thought. If some task scheduled just is exit, we don't need > | to raise OOMed task's priority. > | > | But raising min rt priority on your patch was what I want. > | It doesn't preempt any RT task. > | > | So until now, I have made noise about your patch. > | Really, sorry for that. > | I don't have any objection on raising priority part from now on. > > This is the third version of the patch, factoring in your input along with > Peter's comment. Basically the same patch, but using the lowest RT priority > to boost the dying task. > > Thanks again for reviewing and commenting. > Luis > > oom-killer: give the dying task rt priority (v3) > > Give the dying task RT priority so that it can be scheduled quickly and die, > freeing needed memory. > > Signed-off-by: Luis Claudio R. Gonçalves <lgoncalv@redhat.com> > > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > index 84bbba2..2b0204f 100644 > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c > @@ -266,6 +266,8 @@ static struct task_struct *select_bad_process(unsigned long *ppoints) > */ > static void __oom_kill_task(struct task_struct *p, int verbose) > { > + struct sched_param param; > + > if (is_global_init(p)) { > WARN_ON(1); > printk(KERN_WARNING "tried to kill init!\n"); > @@ -288,6 +290,8 @@ static void __oom_kill_task(struct task_struct *p, int verbose) > * exit() and clear out its resources quickly... > */ > p->time_slice = HZ; > + param.sched_priority = MAX_RT_PRIO-10; > + sched_setscheduler(p, SCHED_FIFO, ¶m); > set_tsk_thread_flag(p, TIF_MEMDIE); >
BTW, how about the other threads which share mm_struct ? Thanks, -Kame --
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:
[RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Thu May 27, 11:04 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Oleg Nesterov
, (Thu May 27, 11:33 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Thu May 27, 7:54 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Thu May 27, 8:51 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Balbir Singh
, (Thu May 27, 9:33 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Thu May 27, 9:46 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Thu May 27, 10:30 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Thu May 27, 10:39 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Thu May 27, 10:50 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Thu May 27, 10:59 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Balbir Singh
, (Thu May 27, 11:27 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Thu May 27, 11:34 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Thu May 27, 11:38 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Fri May 28, 12:52 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Fri May 28, 5:53 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Fri May 28, 7:06 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Balbir Singh
, (Fri May 28, 7:20 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Fri May 28, 7:36 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Fri May 28, 8:03 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Fri May 28, 8:12 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Peter Zijlstra
, (Fri May 28, 8:21 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Fri May 28, 8:28 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Fri May 28, 8:35 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Fri May 28, 8:45 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Peter Zijlstra
, (Fri May 28, 8:53 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Fri May 28, 9:48 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Fri May 28, 8:59 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Sun May 30, 8:09 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Sun May 30, 5:21 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Sun May 30, 7:15 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Sun May 30, 10:01 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Sun May 30, 10:04 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Sun May 30, 10:06 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Sun May 30, 10:46 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Sun May 30, 10:54 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Sun May 30, 11:09 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Sun May 30, 11:35 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Sun May 30, 11:51 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Mon May 31, 12:05 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Mon May 31, 12:25 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Mon May 31, 2:30 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Mon May 31, 3:33 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Mon May 31, 6:52 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, KAMEZAWA Hiroyuki
, (Mon May 31, 4:50 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Tue Jun 1, 1:19 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Tue Jun 1, 10:35 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, David Rientjes
, (Tue Jun 1, 11:36 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, David Rientjes
, (Tue Jun 1, 1:49 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Wed Jun 2, 6:54 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, Luis Claudio R. Gonc ...
, (Wed Jun 2, 7:20 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, David Rientjes
, (Wed Jun 2, 2:11 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, KOSAKI Motohiro
, (Wed Jun 2, 4:36 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Minchan Kim
, (Wed Jun 2, 5:52 pm)
Re: [RFC] oom-kill: give the dying task a higher priority
, Peter Zijlstra
, (Thu Jun 3, 12:50 am)
Re: [RFC] oom-kill: give the dying task a higher priority
, David Rientjes
, (Thu Jun 3, 1:32 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate