[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871pj91sdb.fsf@linux.dev>
Date: Wed, 28 Jan 2026 10:53:20 -0800
From: Roman Gushchin <roman.gushchin@...ux.dev>
To: Michal Hocko <mhocko@...e.com>
Cc: bpf@...r.kernel.org, Alexei Starovoitov <ast@...nel.org>, Matt
Bobrowski <mattbobrowski@...gle.com>, Shakeel Butt
<shakeel.butt@...ux.dev>, JP Kobryn <inwardvessel@...il.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, Suren Baghdasaryan
<surenb@...gle.com>, Johannes Weiner <hannes@...xchg.org>, Andrew Morton
<akpm@...ux-foundation.org>
Subject: Re: [PATCH bpf-next v3 07/17] mm: introduce BPF OOM struct ops
Michal Hocko <mhocko@...e.com> writes:
> Once additional point I forgot to mention previously
>
> On Mon 26-01-26 18:44:10, Roman Gushchin wrote:
>> @@ -1168,6 +1180,13 @@ bool out_of_memory(struct oom_control *oc)
>> return true;
>> }
>>
>> + /*
>> + * Let bpf handle the OOM first. If it was able to free up some memory,
>> + * bail out. Otherwise fall back to the kernel OOM killer.
>> + */
>> + if (bpf_handle_oom(oc))
>> + return true;
>> +
>> select_bad_process(oc);
>> /* Found nothing?!?! */
>> if (!oc->chosen) {
>
> Should this check for is_sysrq_oom and always use the in kernel OOM
> handling for Sysrq triggered ooms as a failsafe measure?
Yep, good point. Will implement in v4.
Thanks!
Powered by blists - more mailing lists