8000 Unable to query container memory in container on RaspberryPi 5 · Issue #3 · coder/clistat · GitHub
[go: up one dir, main page]

Skip to content
Unable to query container memory in container on RaspberryPi 5 #3
Closed
@DanielleMaywood

Description

@DanielleMaywood

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0