Re: [PATCH 0/5] Handle oom bypass more gracefully

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

 



On Sat 28-05-16 23:04:08, Tetsuo Handa wrote:
> Michal Hocko wrote:
> > JFYI, I plan to repost the series early next week after I review all the
> > pieces again properly with a clean head. If some parts are not sound or
> > completely unacceptable in principle then let me know of course.
> 
> I don't think we can apply this series.
> 
>   [PATCH 1/6] is unreliable and will be dropped.
> 
>   [PATCH 2/6] would be OK as a clean up.
> 
>   [PATCH 3/6] will change user visible part. We deprecated /proc/pid/oom_adj
>   in Aug 2010 (nearly 6 years ago) by commit 51b1bd2ace1595b7 ("oom: deprecate
>   oom_adj tunable") but we still preserve that behavior, don't we? I think
>   [PATCH 3/6] will need 5 to 10 years of get-acquainted period in order to
>   make sure that no end users will depend on current behavior. This is not
>   something we can change now.

I would really like to hear a case where this would break anything.

> 
>   [PATCH 4/6] is unsafe as Vladimir commented.
> 
>   [PATCH 5/6] will also change user visible part. We need get-acquainted period.
>   This is not something we can change now.

Do you care to describe how and who would be affected?

>   [PATCH 6/6] seems to be unsafe as I commented on a different thread
>   ( http://lkml.kernel.org/r/201605282122.HAD09894.SFOFHtOVJLOQMF@xxxxxxxxxxxxxxxxxxx ).

I already have fixes for those.

> You are trying to make the OOM killer as per mm_struct operation. But
> I think we need to tolerate the OOM killer as per signal_struct operation.

Signal struct based approach is full of weird behavior which just leads
to corner cases. I think going mm struct way is the only sensible
approach. So far, the only road block seems to be a question whether
changing oom_score_adj for processes out of thread group is acceptable.
I argue that it should be because this is what we effectively do we just
to not express that to the userspace. Well. except for OOM_SCORE_ADJ_MIN
which we might handle specially in some way. So let's argue about
potential drawback of the user visible behavior change has, who might be
affected and how rather than blocking a sensible approach.

-- 
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]