runc/libcontainer/cgroups
Akihiro Suda bf15cc99b1 cgroup v2: support rootless systemd
Tested with both Podman (master) and Moby (master), on Ubuntu 19.10 .

$ podman --cgroup-manager=systemd run -it --rm --runtime=runc \
  --cgroupns=host --memory 42m --cpus 0.42 --pids-limit 42 alpine
/ # cat /proc/self/cgroup
0::/user.slice/user-1001.slice/user@1001.service/user.slice/libpod-132ff0d72245e6f13a3bbc6cdc5376886897b60ac59eaa8dea1df7ab959cbf1c.scope
/ # cat /sys/fs/cgroup/user.slice/user-1001.slice/user@1001.service/user.slice/libpod-132ff0d72245e6f13a3bbc6cdc5376886897b60ac59eaa8dea1df7ab959cbf1c.scope/memory.max
44040192
/ # cat /sys/fs/cgroup/user.slice/user-1001.slice/user@1001.service/user.slice/libpod-132ff0d72245e6f13a3bbc6cdc5376886897b60ac59eaa8dea1df7ab959cbf1c.scope/cpu.max
42000 100000
/ # cat /sys/fs/cgroup/user.slice/user-1001.slice/user@1001.service/user.slice/libpod-132ff0d72245e6f13a3bbc6cdc5376886897b60ac59eaa8dea1df7ab959cbf1c.scope/pids.max
42

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-05-08 12:39:20 +09:00
..
ebpf cgroup2: ebpf: increase RLIM_MEMLOCK to avoid BPF_PROG_LOAD error 2019-11-07 15:43:27 +09:00
fs Simplify ticks, as the value is a constant 2020-05-04 23:05:46 +02:00
fs2 let runc disable swap in cgroup v2 2020-05-03 20:57:36 +08:00
fscommon cgroups/fscommon: use errors.Is 2020-04-18 16:16:49 -07:00
systemd cgroup v2: support rootless systemd 2020-05-08 12:39:20 +09: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 let runc disable swap in cgroup v2 2020-05-03 20:57:36 +08:00
utils_test.go cgroupv2: fix setting MemorySwap 2020-04-07 20:45:53 -07:00