From: Tejun Heo Subject: Re: [RFC PATCH bpf-next 0/5] bpf, cgroup: Enable cgroup_array map on cgroup1 Date: Fri, 15 Sep 2023 07:31:43 -1000 Message-ID: References: <20230903142800.3870-1-laoar.shao@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694799106; x=1695403906; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=Uh+Svyu69yjI7IZ0hILShgFArwlpiuOCby9tFGyVqR8=; b=MyFJanD/JyG6CZw1jd7qaQ6kwaizla4Q1YJOLrJ6320U+9vxRF5sj8YiZLWqFEyWeX 7zZnvN9Z35bnK6yT9iFomEmDvGhk8jExSns6B0jVI25OMfx/wLJJt3yl8UzrPmg2k/MD tzjzGv5tcI0GxlDU/F0h/ZNaFjHc/qi39FarDgaXhvO1McQimWDlSZR13cDfbkhv+T1p qMI2bi4Lo6g3Zymgy8+llGsv/BpT//gC8ph66SnX+AMyMXlossDaTJ/4CTn7MvOY4rb2 4E4vqCHD32pyBH47F1pjGtdZeMorsRMB9a9kwU3CD8evncSd4X78k92UYjKQo46wGmVg S5AA== Sender: Tejun Heo List-Id: List-Subscribe: List-Unsubscribe: Content-Disposition: inline In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: Yafang Shao , Alexei Starovoitov , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Zefan Li , Johannes Weiner , Yosry Ahmed , "open list:CONTROL GROUP (CGROUP)" , bpf On Fri, Sep 15, 2023 at 07:01:28PM +0200, Michal Koutn=FD wrote: > Hello. >=20 > On Tue, Sep 12, 2023 at 11:30:32AM +0800, Yafang Shao wrote: > > With the above changes, I think it can meet most use cases with BPF on = cgroup1. > > What do you think ? >=20 > I think the presented use case of LSM hooks is better served by the > default hierarchy (see also [1]). > Relying on a chosen subsys v1 hierarchy is not systematic. And extending > ancestry checking on named v1 hierarchies seems backwards given > the existence of the default hierarchy. Yeah, identifying cgroup1 hierarchies by subsys leave out pretty good chunk of usecases - e.g. systemd used to use a named hierarchy for primary process organization on cgroup1. Also, you don't have to switch to cgroup2 wholesale. You can just build the same hierarchy in cgroup2 for process organization and combine that with any cgroup1 hierarchies. Thanks. --=20 tejun