User Tools

Site Tools


ubuntu:cgroups:cgroupv1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:cgroups:cgroupv1 [2021/07/14 11:15] – created peterubuntu:cgroups:cgroupv1 [2021/07/25 10:40] (current) peter
Line 1: Line 1:
 ====== Ubuntu - cgroups - cgroupv1 ====== ====== Ubuntu - cgroups - cgroupv1 ======
- 
  
 [[Ubuntu:cgroups:cgroupv1|cgroupv1]] [[Ubuntu:cgroups:cgroupv1|cgroupv1]]
 +
 +cgroupv1 has a hierarchy per-resource, for example:
 +
 +<code bash>
 +ls /sys/fs/cgroup
 +</code>
 +
 +returns:
 +
 +<code bash>
 +blkio    cpu,cpuacct  freezer  net_cls           perf_event  systemd
 +cpu      cpuset       hugetlb  net_cls,net_prio  pids        unified
 +cpuacct  devices      memory   net_prio          rdma
 +</code>
 +
 +Each resource hierarchy contains cgroups for this resource:
 +
 +<code bash>
 +find /sys/fs/cgroup/pids -type d
 +</code>
 +
 +returns:
 +
 +<code bash>
 +/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
 +...
 +</code>
 +
ubuntu/cgroups/cgroupv1.1626261322.txt.gz · Last modified: 2021/07/14 11:15 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki