On Fri 09-12-22 09:25:38, Michal Hocko wrote: > On Fri 09-12-22 05:07:15, 程垲涛 Chengkaitao Cheng wrote: [...] > > Here is a simple example. In a docker container, users can divide all processes > > into two categories (important and normal), and put them in different cgroups. > > One cgroup's oom.protect is set to "max", the other is set to "0". In this way, > > important processes in the container can be protected. > > That is effectivelly oom_score_adj = OOM_SCORE_ADJ_MIN - 1 to all Sorry that should have been OOM_SCORE_ADJ_MIN + 1 -- Michal Hocko SUSE Labs