在 2023/9/14 20:50, Chuyi Zhou 写道:
Well, I thought the system would only load one OOM policy(set one policy name), which would set the prio of all memcgs.
Delete set_oom_policy_name, it makes no sense for users to set policy names. 🙂
There can be multiple OOM policy in the system at the same time.
If we need to apply different OOM policies to different memcgs based on different scenarios, we can use this hook(set_oom_policy_name) to set name to identify which policy in invoked at that time.
Just some thoughts.
What you mean is that multiple bpf.c may be loaded at the system, and each bpf.c sets the different policy for different memcgs?