Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi 4: cgroups: memory cgroup not supported on this system #2062

Closed
pdcastro opened this issue Nov 26, 2020 · 2 comments
Closed

RPi 4: cgroups: memory cgroup not supported on this system #2062

pdcastro opened this issue Nov 26, 2020 · 2 comments

Comments

@pdcastro
Copy link

pdcastro commented Nov 26, 2020

As originally reported in:

Appears to happen on the RPi 4 only (I wonder if it would also affect the RPi 3 64 bits...)

On investigation, @pipex found that the supervisor fails to start a container (restart loop) because:

[...] the supervisor sets the memReservation value correctly when creating the container but it looks like the engine fails to apply it, the supervisor queries the container state which reports MemoryReservation: 0 and we get the loop.
Inspecting the container (you have to stop the supervisor before it can kill the service), shows the value is not set for the ui service [the app container in a restart loop].
The engine also throws the warning
Nov 26 13:28:46 e09a3cd balenad[1448]: time="2020-11-26T13:28:46.131725111Z" level=warning msg="OOM monitoring failed" error="cgroups: memory cgroup not supported on this system"
Googling the message I got to moby/moby#35587 where they propose the fix of adding cgroup_enable=memory to cmdline.txt. I tested on my RPI4 and the loop stops.
Not sure if there is something that changed in the OS or the engine that caused this issue to show up. Maybe people in (at)(at)os or @robertgzr might know more.

Creating this meta-balena GitHub issue on the assumption that it is an OS issue, and/or in case it helps to gather more information.

@pdcastro pdcastro changed the title cgroups: memory cgroup not supported on this system RPi 4: cgroups: memory cgroup not supported on this system Nov 26, 2020
@jellyfish-bot
Copy link

[pdcastro] This issue has attached support thread https://jel.ly.fish/2890ed0a-d515-4a58-b1f0-a0eb17b115f4

@alexgg
Copy link
Contributor

alexgg commented Dec 11, 2020

Moving to the raspberrypi integration repo balena-os/balena-raspberrypi#574

@alexgg alexgg closed this as completed Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants