From: Lian Wang <lianux.mm@gmail.com>
To: Ben Gardon <bgardon@google.com>,
Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>,
bpf@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org
Subject: Re: [PATCH bpf-next v4 00/17] mm: BPF OOM
Date: Sun, 6 Dec 2026 18:04:48 +0800 [thread overview]
Message-ID: <179655145461.76477.1081548912221408111@gmail.com> (raw)
In-Reply-To: <DNBMLKXS06SC.77S9LNUVAOAP@gmail.com>
Hi Ben and Alexei,
The watermark policy would be useful to us too. We're working on
protecting latency-sensitive workloads that share a machine with batch
jobs. We want to shed batch work before those workloads stall.
Being able to configure the watermark and identify eligible cgroups
would let us try the same policy with our workload layout.
I'd like to test a batch leaf and a latency-sensitive sibling under a
parent with memory.oom.group enabled. With the two-stage approach you
discussed, would you declare the OOM on the batch leaf so that fallback
selection and group killing stay within that subtree?
I'd be happy to review the watermark policy and help write a selftest.
I'd start with one eligible task in the batch leaf. If it stays there,
the proactive request should kill it and leave the sibling alone. If it
exits between selection and handling, the sibling should still survive.
If it moves into the sibling instead, both the moved task and the
sibling's original task should survive. I'd test ordinary allocation OOM
separately so its normal fallback is exercised independently.
Thanks,
Lian Wang
prev parent reply other threads:[~2026-12-06 10:04 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 21:03 [PATCH bpf-next v4 00/17] mm: BPF OOM Ben Gardon
2026-12-02 21:03 ` [PATCH bpf-next v4 01/17] bpf: mark struct oom_control's memcg field as TRUSTED_OR_NULL Ben Gardon
2026-12-02 21:03 ` [PATCH bpf-next v4 02/17] mm, bpf: introduce BPF OOM struct ops Ben Gardon
2026-12-02 21:59 ` bot+bpf-ci
2026-12-03 5:40 ` kernel test robot
2026-12-02 21:03 ` [PATCH bpf-next v4 03/17] mm, bpf: introduce bpf_oom_kill_process() BPF kfunc Ben Gardon
2026-12-02 21:58 ` bot+bpf-ci
2026-12-02 21:03 ` [PATCH bpf-next v4 04/17] mm, bpf: introduce bpf_out_of_memory() " Ben Gardon
2026-12-02 21:59 ` bot+bpf-ci
2026-12-02 21:03 ` [PATCH bpf-next v4 05/17] selftests/bpf: Add BPF OOM struct ops test Ben Gardon
2026-12-02 21:03 ` [PATCH bpf-next v4 06/17] sched/psi: add a tracepoint to psi_avgs_work() Ben Gardon
2026-12-02 21:03 ` [PATCH bpf-next v4 07/17] sched/psi: add cgroup_id field to psi_group structure Ben Gardon
2026-12-02 21:03 ` [PATCH bpf-next v4 08/17] mm, bpf: allow calling bpf_out_of_memory() from a PSI tracepoint Ben Gardon
2026-12-02 21:03 ` [PATCH bpf-next v4 09/17] selftests/bpf: Enable CONFIG_PSI Ben Gardon
2026-12-02 21:04 ` [PATCH bpf-next v4 10/17] selftests/bpf: Add PSI tracepoint OOM test Ben Gardon
2026-12-02 21:04 ` [PATCH bpf-next v4 11/17] selftests/bpf: Add systemd-oomd style OOM policy test Ben Gardon
2026-12-02 21:58 ` bot+bpf-ci
2026-12-02 21:04 ` [PATCH bpf-next v4 12/17] mm, bpf: introduce bpf_oom_proactive_kill() for proactive OOM prevention Ben Gardon
2026-12-02 21:58 ` bot+bpf-ci
2026-12-03 1:19 ` Alexei Starovoitov
2026-12-03 18:35 ` Ben Gardon
2026-12-02 21:04 ` [PATCH bpf-next v4 13/17] selftests/bpf: Add bpf_oom_proactive_kill() proactive OOM test Ben Gardon
2026-12-02 21:04 ` [PATCH bpf-next v4 14/17] selftests/bpf: Add negative and verifier tests for BPF OOM kfuncs Ben Gardon
2026-12-02 21:58 ` bot+bpf-ci
2026-12-02 21:04 ` [PATCH bpf-next v4 15/17] mm, bpf: introduce bpf_mem_cgroup_raise_max() kfunc Ben Gardon
2026-12-02 21:58 ` bot+bpf-ci
2026-12-02 21:04 ` [PATCH bpf-next v4 16/17] selftests/bpf: Add bpf_mem_cgroup_raise_max() OOM test Ben Gardon
2026-12-02 21:04 ` [PATCH bpf-next v4 17/17] Documentation/bpf: Document BPF OOM handling and kfuncs Ben Gardon
2026-12-02 21:58 ` bot+bpf-ci
2026-12-02 21:38 ` [PATCH bpf-next v4 00/17] mm: BPF OOM Ben Gardon
2026-12-03 1:24 ` Alexei Starovoitov
2026-12-03 18:16 ` Ben Gardon
2026-12-04 3:25 ` Alexei Starovoitov
2026-12-06 10:04 ` Lian Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179655145461.76477.1081548912221408111@gmail.com \
--to=lianux.mm@gmail.com \
--cc=alexei.starovoitov@gmail.com \
--cc=bgardon@google.com \
--cc=bpf@vger.kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=roman.gushchin@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox