Re: [PATCH] oom: choose a more suitable process to kill while all processes are not killable

From: Michal Hocko
Date: Fri Dec 20 2019 - 02:13:44 EST


On Fri 20-12-19 14:26:12, zgpeng.linux@xxxxxxxxx wrote:
> From: zgpeng <zgpeng@xxxxxxxxxxx>
>
> It has been found in multiple business scenarios that when a oom occurs
> in a cgroup, the process that consumes the most memory in the cgroup is
> not killed first. Analysis of the reasons found that each process in the
> cgroup oom_score_adj is set to -998, oom_badness in the calculation of
> points, if points is negative, uniformly set it to 1.

Can you provide an example of the oom report?
--
Michal Hocko
SUSE Labs