cgroup currently contains a v1, and v2 version, v2 v1 version compared to more clearly on the directory organization, management more convenient, a lot of
times we might need to check our current installed kernel supports kernel version cgroup v2
Article content from https://unix.stackexchange.com/questions/471476/how-do-i-check-cgroup-v2-is-installed-on-my-machine
method one
By the way the file system mount
mount -t cgroup2 none $MOUNT_POINT
- test
mkdir /opt/dalong-cgroupv2
mount -t cgroup2 none /opt/dalong-cgroupv2
If no error description is not a problem, but you should be able to see the file directory mount
effect
├── cgroup.controllers
├── cgroup.max.depth
├── cgroup.max.descendants
├── cgroup.procs
├── cgroup.stat
├── cgroup.subtree_control
└── cgroup.threads
Method Two
Check the file system
grep cgroup /proc/filesystems
- Test results
if included is the installation of cgroup2
grep cgroup /proc/filesystems
nodev cgroup
nodev cgroup2
Reference material
https://unix.stackexchange.com/questions/471476/how-do-i-check-cgroup-v2-is-installed-on-my-machine