[LTP] [PATCH] controllers/pids.sh: get available for cgroup v2

Richard Palethorpe rpalethorpe@suse.de
Mon Nov 15 11:58:27 CET 2021


Hello Masayoshi,

Masayoshi Mizuma <msys.mizuma@gmail.com> writes:

> From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
>
> controllers/pids/pids.sh doesn't work in the cgroup v2 environment because
> some interfaces of cgroup v2 are different from cgroup v1.
>
> The test itself is useful for cgroup v2 as well, so let's get it
> available for cgroup v2.
>
> The test starts with cgroup v2 if it's mounted already. On some systems,
> like as Fedora 35 and CentOS Stream 9, systemd mounts cgroup v2 as the
> default while system booting.

FYI, we have a C API for CGroups which handles all of this. However this
patch looks good!

Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>

-- 
Thank you,
Richard.


More information about the ltp mailing list