I have finally opened some PRs for conmon and libpod that enable resources management for Podman rootless containers on Fedora 30 when using crun.
The PRs are here:
- conmon: https://github.com/cri-o/cri-o/pull/2356
- Podman: https://github.com/containers/libpod/pull/3104
- crun: https://github.com/giuseppe/crun/pull/46
The only change for the default Fedora 30 configuration is to enable the cgroup v2 unified hierarchy. It can be done with:
|
|
and a reboot.
systemd by default enables only the pids and memory controllers for unprivileged users. If you want to enable more controllers, you need a drop-in configuration file under /etc/systemd/system/[email protected], that looks like:
I’ve not found a way to enable the cpuset controller using only the systemd configuration. It must be done manually, or by providing a service file that writes directly to /sys/fs/cgroup/cgroup.subtree_control and /sys/fs/cgroup/user.slice/cgroup.subtree_control, and then make sure this setting is propagated to [email protected].
With the updated versions of crun, Podman and conmon:
|
|