podman/pkg/cgroups
Giuseppe Scrivano 1778bfa5fe
pkg, cgroups: add initial support for cgroup v2
This is an initial implementation of cgroup v2 support for
pkg/cgroups.  It currently works with crun, with this patch:
https://github.com/giuseppe/crun/pull/49).

It adds the pieces for:

- set PID limit to 1
- retrieve stats so that "podman stats" work.

the only missing part is the support for reading per
CPU stats (that is cpuacct.usage_percpu on cgroup v1), so for now it
always returns an empty result.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-06-26 13:17:05 +02:00
..
blkio.go pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
cgroups.go pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
cgroups_supported.go pkg: new package cgroups 2019-06-26 13:17:01 +02:00
cgroups_unsupported.go pkg: new package cgroups 2019-06-26 13:17:01 +02:00
cpu.go pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
cpuset.go pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
memory.go pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
pids.go pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
systemd.go pkg: new package cgroups 2019-06-26 13:17:01 +02:00