User Tools

Site Tools


ubuntu:cgroups:cgroupv1

Ubuntu - cgroups - cgroupv1

cgroupv1

cgroupv1 has a hierarchy per-resource, for example:

ls /sys/fs/cgroup

returns:

blkio    cpu,cpuacct  freezer  net_cls           perf_event  systemd
cpu      cpuset       hugetlb  net_cls,net_prio  pids        unified
cpuacct  devices      memory   net_prio          rdma

Each resource hierarchy contains cgroups for this resource:

find /sys/fs/cgroup/pids -type d

returns:

/sys/fs/cgroup/pids
/sys/fs/cgroup/pids/docker
/sys/fs/cgroup/pids/user.slice
/sys/fs/cgroup/pids/system.slice
/sys/fs/cgroup/pids/system.slice/irqbalance.service
/sys/fs/cgroup/pids/system.slice/containerd.service
/sys/fs/cgroup/pids/system.slice/systemd-networkd.service
/sys/fs/cgroup/pids/system.slice/whoopsie.service
/sys/fs/cgroup/pids/system.slice/cron.service
/sys/fs/cgroup/pids/system.slice/avahi-daemon.service
/sys/fs/cgroup/pids/system.slice/systemd-logind.service
/sys/fs/cgroup/pids/machine.slice
...
ubuntu/cgroups/cgroupv1.txt · Last modified: 2021/07/25 10:40 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki