Re: [PATCH v3] mm, oom: OOM sysrq should always kill a process

From: David Rientjes
Date: Thu Jan 06 2022 - 15:34:24 EST


On Thu, 6 Jan 2022, Jann Horn wrote:

> The OOM kill sysrq (alt+sysrq+F) should allow the user to kill the
> process with the highest OOM badness with a single execution.
>
> However, at the moment, the OOM kill can bail out if an OOM notifier
> (e.g. the i915 one) says that it reclaimed a tiny amount of memory
> from somewhere. That's probably not what the user wants, so skip the
> bailout if the OOM was triggered via sysrq.
>
> Acked-by: Michal Hocko <mhocko@xxxxxxxx>
> Signed-off-by: Jann Horn <jannh@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>