runc/libcontainer/cgroups
Kir Kolyshkin c3b0b13fe9 cgroups/fs2: don't always parse /proc/self/cgroup
Function defaultPath always parses /proc/self/cgroup, but
the resulting value is not always used.

Avoid unnecessary reading/parsing by moving the code
to just before its use.

Modify the test case accordingly.

[v2: test: use UnifiedMountpoint, skip test if not on v2]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-04-28 22:16:36 -07:00
..
ebpf cgroup2: ebpf: increase RLIM_MEMLOCK to avoid BPF_PROG_LOAD error 2019-11-07 15:43:27 +09:00
fs nit: do not use syscall package 2020-04-18 16:16:49 -07:00
fs2 cgroups/fs2: don't always parse /proc/self/cgroup 2020-04-28 22:16:36 -07:00
fscommon cgroups/fscommon: use errors.Is 2020-04-18 16:16:49 -07:00
systemd check that StartTransientUnit and StopUnit succeeds 2020-04-28 15:46:28 +08:00
cgroups.go libcontainer: add method to get cgroup config from cgroup Manager 2019-12-17 22:46:03 +00:00
cgroups_test.go .travis.yml: add Fedora 31 vagrant box (for cgroup2) 2019-10-31 16:53:01 +09:00
cgroups_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
stats.go Exposing memory.numa_stats 2020-04-08 17:40:09 +02:00
utils.go libcontainer: remove unneeded import 2020-04-09 20:14:39 +09:00
utils_test.go cgroupv2: fix setting MemorySwap 2020-04-07 20:45:53 -07:00