Verifying cgroups v2

At boot time, Oracle Linux 9 mounts cgroups v2 by default.

  1. Verify that cgroups v2 is enabled and mounted on the system.
    sudo mount -l | grep cgroup
    cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate,memory_recursiveprot)
  2. Optionally, check the contents of /sys/fs/cgroup directory, which is also called the root control group.
    ls -l /sys/fs/cgroup/

    For cgroups v2, the files in the directory should have prefixes to their file names, for example, cgroup.*, cpu.*, memory.*, and so on. See About the Control Group File System.