最後更新: 2020-04-28
cgroup v2 介紹
# Linux 4.5
cgroups v2 及 v1 可以同時存在
v2 = unified cgroup hierarchy
* The unified CGroup hierarchy does not have CGroup V1 device controllers.
Check Kernel support V2
grep cgroup /proc/filesystems
nodev cgroup nodev cgroup2
Controllers are available for cgroups-v2
* A resource controller can be used either in a cgroups-v1 hierarchy or a cgroups-v2 hierarchy,
not simultaneously in both.
- blkio
- memory
- pids
- rdma
- cpu
- cpuset
- perf_event
LXC
LXC >= 3.0.0 support CGroupV2
lxc.cgroup.devices.allow = lxc.cgroup.devices.deny =