Re: [PATH v2] cgroup: add cgroup_favordynmods= command-line option

From: Luiz Capitulino
Date: Thu Sep 07 2023 - 12:22:17 EST




On 2023-09-07 11:06, Michal Koutný wrote:
On Wed, Sep 06, 2023 at 12:57:12AM +0000, Luiz Capitulino <luizcap@xxxxxxxxxx> wrote:
We have a need of using favordynmods with cgroup v1, which doesn't support
changing mount flags during remount. Enabling CONFIG_FAVOR_DYNMODS at
build-time is not an option because we want to be able to selectively
enable it for certain systems.

Could this be implemented by a utility that would read /proc/cmdline
(while kernel ignores the arg) and remount respective hierarchies
accordingly? Or what do I miss?

Yeah, this works for cgroup v2 but my understanding is that cgroup v1
doesn't support changing flags in remount, take a look at
cgroup1_reconfigure().

- Luiz