lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 31 May 2010 16:05:48 +0900
From:	Minchan Kim <minchan.kim@...il.com>
To:	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Cc:	"Luis Claudio R. Goncalves" <lclaudio@...g.org>,
	balbir@...ux.vnet.ibm.com, Oleg Nesterov <oleg@...hat.com>,
	linux-kernel@...r.kernel.org, linux-mm@...ck.org,
	Thomas Gleixner <tglx@...utronix.de>,
	Peter Zijlstra <peterz@...radead.org>,
	David Rientjes <rientjes@...gle.com>,
	Mel Gorman <mel@....ul.ie>, williams@...hat.com,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Subject: Re: [RFC] oom-kill: give the dying task a higher priority

On Mon, May 31, 2010 at 3:35 PM, KOSAKI Motohiro
<kosaki.motohiro@...fujitsu.com> wrote:
> Hi
>
>> Hi, Kosaki.
>>
>> On Sat, May 29, 2010 at 12:59 PM, KOSAKI Motohiro
>> <kosaki.motohiro@...fujitsu.com> wrote:
>> > Hi
>> >
>> >> 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@...hat.com>
>> >
>> > Almostly acceptable to me. but I have two requests,
>> >
>> > - need 1) force_sig() 2)sched_setscheduler() order as Oleg mentioned
>> > - don't boost priority if it's in mem_cgroup_out_of_memory()
>>
>> Why do you want to not boost priority if it's path of memcontrol?
>>
>> If it's path of memcontrol and CONFIG_CGROUP_MEM_RES_CTLR is enabled,
>> mem_cgroup_out_of_memory will select victim task in memcg.
>> So __oom_kill_task's target task would be in memcg, I think.
>
> Yep.
> But priority boost naturally makes CPU starvation for out of the group
> processes.
> It seems to break cgroup's isolation concept.
>
>> As you and memcg guys don't complain this, I would be missing something.
>> Could you explain it? :)
>
> So, My points are,
>
> 1) Usually priority boost is wrong idea. It have various side effect, but
>   system wide OOM is one of exception. In such case, all tasks aren't
>   runnable, then, the downside is acceptable.
> 2) memcg have OOM notification mechanism. If the admin need priority boost,
>   they can do it by their OOM-daemon.

Is it possible kill the hogging task immediately when the daemon send
kill signal?
I mean we can make OOM daemon higher priority than others and it can
send signal to normal process. but when is normal process exited after
receiving kill signal from OOM daemon? Maybe it's when killed task is
executed by scheduler. It's same problem again, I think.

Kame, Do you have an idea?

> Thanks.
>
>
>



-- 
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ