Closed
Description
When calling ContainerMemory
on my Raspberry Pi 5 it fails with
open /sys/fs/cgroup/memory.max: no such file or directory
By querying the /sys/fs/cgroup/cgroup.controllers
file we see that the memory controller is not available, and querying /sys/fs/cgroup/cgroup.subtree_control
shows us which are enabled (which in my case is none).
$ cat /sys/fs/cgroup/cgroup.controllers
cpuset cpu io pids
$ cat /sys/fs/cgroup/cgroup.subtree_control
Running the same commands in my coder workspace shows the memory controller is available and enabled.
$ cat /sys/fs/cgroup/cgroup.controllers
cpuset cpu io memory hugetlb pids rdma misc
$ cat /sys/fs/cgroup/cgroup.subtree_control
cpuset cpu io memory hugetlb pids rdma misc
https://docs.kernel.org/admin-guide/cgroup-v2.html#controlling-controllers