Re: [RFC] oom-kill: give the dying task a higher priority

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Minchan Kim
Date: Wednesday, June 2, 2010 - 5:52 pm

On Thu, Jun 3, 2010 at 8:36 AM, KOSAKI Motohiro
<kosaki.motohiro@jp.fujitsu.com> wrote:

Tend to agree. I didn't agree boosting of whole threads' priority.

Task fairness VS system hang is trade off. task fairness is best
effort but system hang is critical.
Also, we have tried to it.

        /*
         * We give our sacrificial lamb high priority and access to
         * all the memory it needs. That way it should be able to
         * exit() and clear out its resources quickly...
         */
        p->rt.time_slice = HZ;
        set_tsk_thread_flag(p, TIF_MEMDIE);

But I think above code is meaningless unless p use SCHED_RR.
So boosting of lowest RT priority with FIFO is to meet above comment's
goal, I think.

-- 
Kind regards,
Minchan Kim
--
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, KOSAKI Motohiro, (Thu May 27, 9:46 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, 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, Luis Claudio R. Gonc ..., (Fri May 28, 5:53 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, 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, 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, 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, KAMEZAWA Hiroyuki, (Sun May 30, 10:04 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, 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, KAMEZAWA Hiroyuki, (Mon May 31, 12:25 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, 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)