[LTP] Question on .needs_cgroup_ctrls for cgroupv2

Cyril Hrubis chrubis@suse.cz
Mon Feb 27 16:28:05 CET 2023


Hi!
> So .needs_cgroup_ctrls can not used anymore for ONLY V2 case?
> Since i encounter "tst_cgroup.c:848: TCONF: V2 'memory' controller required, but it's mounted on V1" when i add ".needs_cgroup_ctrls = (const char *const []){ "memory", NULL }". 

Each controller can be mounted as V1 or as V2 but not both at the same
time. It depends on how the system is booted, the default on most
distributions is mixed V1 and V2 at the moment. If you want V2 system
you have to reboot with systemd.unified_cgroup_hierarchy=1.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list