podman/pkg
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
..
adapter remove libpod from main 2019-06-25 13:51:24 -05:00
annotations Update cri-o annotations 2019-04-01 11:10:54 +02:00
apparmor pkg/apparmor: fix when AA is disabled 2019-06-14 17:37:16 +02:00
cgroups pkg, cgroups: add initial support for cgroup v2 2019-06-26 13:17:05 +02:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime ctime: Drop 32-/64-bit distinction on Linux 2018-07-07 20:35:00 +00:00
firewall Replace existing iptables handler with firewall code 2018-09-10 18:53:27 +00:00
hooks Fix example in oci-hooks.5.md 2019-06-18 18:43:21 +02:00
inspect Begin to break up pkg/inspect 2019-06-03 15:54:53 -04:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
logs Merge pull request #2522 from mheon/fix_timestamp_format_logs 2019-03-04 13:52:21 -08:00
lookup pkg/lookup: Return ID-only pointers on ErrNo*Entries 2018-12-04 14:46:43 -08:00
namespaces userns: add new option --userns=keep-id 2019-05-24 17:34:12 +02:00
netns Fix godoc comment in pkg/netns 2018-07-27 02:48:16 +00:00
registrar Update registrar unit tests to match them of cri-o 2019-04-04 08:53:32 +02:00
registries Use the logical registry location instead of the physical one in (podman info) 2019-06-14 15:46:17 +02:00
resolvconf Use host's resolv.conf if no network namespace enabled 2018-11-27 15:28:09 -05:00
rootless Build cgo files with -Wall -Werror 2019-06-21 10:14:19 +02:00
spec util: drop IsCgroup2UnifiedMode and use it from cgroups 2019-06-26 13:17:04 +02:00
sysinfo Build cgo files with -Wall -Werror 2019-06-21 10:14:19 +02:00
systemdgen add unit tests for generate systemd 2019-05-06 09:14:10 -05:00
tracing OpenTracing support added to start, stop, run, create, pull, and ps 2019-02-18 09:57:08 -05:00
trust Fix up `image sign` in PR 2108 2019-01-15 12:25:10 -05:00
util util: drop IsCgroup2UnifiedMode and use it from cgroups 2019-06-26 13:17:04 +02:00
varlinkapi remove libpod from main 2019-06-25 13:51:24 -05:00