Re: [RFC PATCH 1/3] memcg: add eBPF struct ops support for memory charging
From: Tejun Heo
Date: Wed Nov 19 2025 - 11:07:14 EST
Hello, Hui.
On Wed, Nov 19, 2025 at 09:34:06AM +0800, Hui Zhu wrote:
> Handlers can inspect this context and modify certain fields
> (e.g., nr_pages) to adjust reclamation behavior. The design
> enforces single active handler to avoid conflicts.
Other folks would know a lot better how this should hook into memcg, but
given that this is a cgroup feature, this should allow hierarchical
delegation. It probably would be a good idea to aling it with the bpf OOM
handler support that Roman is working on.
Thanks.
--
tejun