Hi I am upgrading from lxc 3.0.2 to master branch (preparing for lxc 4.0) , please advice how to set system wide cgroup limits using lxc.cgroup.pattern.
yocto morty, linux v4.9, cgroup v1, lxc 3.2.1+master-bf04c8508dce0c68ea9a98ee6ac1fa01dc2f56a2
/etc/lxc/lxc.conf based on lxc 3.0.2
// global system wide cgroup limit are applied on mylxc
lxc.cgroup.pattern = mylxc/%n
// l3mdev cgroup does not allow nesting, so it is excluded.
lxc.cgroup.use = blkio,cpu,cpuacct,debug,devices,freezer,net_cls,memory,name=systemd
lxc-execute ub – bash
On host I see root lxc.cgroup.pattern is not being honored:
I expected it to be /sys/fs/cgroup/memory/mylxc/lxc.payload.ub
cgroups are not visible inside container.
root@ub:/# ls -l /sys/fs/cgroup/
What are lxc.payload lxc.monitor and lxc.pivot ?