Re: [PATCH] mm,oom: kill duplicated oom_unkillable_task() checks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri 19-02-16 23:33:31, Tetsuo Handa wrote:
> Currently, oom_unkillable_task() is called for twice for each thread,
> once at oom_scan_process_thread() and again at oom_badness().
> 
> The reason oom_scan_process_thread() needs to call oom_unkillable_task()
> is to skip TIF_MEMDIE test and oom_task_origin() test if that thread is
> not OOM-killable.
> 
> But there is a problem with this ordering, for oom_task_origin() == true
> will unconditionally select that thread regardless of oom_score_adj.
> When we merge the OOM reaper, the OOM reaper will mark already reaped
> process as OOM-unkillable by updating oom_score_adj. In order to avoid
> falling into infinite loop, oom_score_adj needs to be checked before
> doing oom_task_origin() test.

What would be the infinite loop?
-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]