[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZFd5bpfYc3nPEVie@dhcp22.suse.cz>
Date: Sun, 7 May 2023 12:11:58 +0200
From: Michal Hocko <mhocko@...e.com>
To: chengkaitao <chengkaitao@...iglobal.com>
Cc: tj@...nel.org, lizefan.x@...edance.com, hannes@...xchg.org,
corbet@....net, roman.gushchin@...ux.dev, shakeelb@...gle.com,
akpm@...ux-foundation.org, brauner@...nel.org,
muchun.song@...ux.dev, viro@...iv.linux.org.uk,
zhengqi.arch@...edance.com, ebiederm@...ssion.com,
Liam.Howlett@...cle.com, chengzhihao1@...wei.com,
pilgrimtao@...il.com, haolee.swjtu@...il.com, yuzhao@...gle.com,
willy@...radead.org, vasily.averin@...ux.dev, vbabka@...e.cz,
surenb@...gle.com, sfr@...b.auug.org.au, mcgrof@...nel.org,
sujiaxun@...ontech.com, feng.tang@...el.com,
cgroups@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH v3 0/2] memcontrol: support cgroup level OOM protection
On Sat 06-05-23 19:49:46, chengkaitao wrote:
> Establish a new OOM score algorithm, supports the cgroup level OOM
> protection mechanism. When an global/memcg oom event occurs, we treat
> all processes in the cgroup as a whole, and OOM killers need to select
> the process to kill based on the protection quota of the cgroup
Although your patch 1 briefly touches on some advantages of this
interface there is a lack of actual usecase. Arguing that oom_score_adj
is hard because it needs a parent process is rather weak to be honest.
It is just trivial to create a thin wrapper, use systemd to launch
important services or simply update the value after the fact. Now
oom_score_adj has its own downsides of course (most notably a
granularity and a lack of group protection.
That being said, make sure you describe your usecase more thoroughly.
Please also make sure you describe the intended heuristic of the knob.
It is not really clear from the description how this fits hierarchical
behavior of cgroups. I would be especially interested in the semantics
of non-leaf memcgs protection as they do not have any actual processes
to protect.
Also there have been concerns mentioned in v2 discussion and it would be
really appreciated to summarize how you have dealt with them.
Please also note that many people are going to be slow in responding
this week because of LSFMM conference
(https://events.linuxfoundation.org/lsfmm/)
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists