-
Notifications
You must be signed in to change notification settings - Fork 85
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
docker stats doesn't report memory usage on arm64 #1112
Comments
Here’s the info Raspberry pi 4b 4GB version 1.2 Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux Docker version Server: |
Two more examples of |
Is your cgroup memory controller enabled? What's the output of "docker info"? |
Docker info output: Containers: 16 WARNING: No memory limit support |
Here's my |
Yeah, looks like your cgroup memory controller is disabled. The key here is these two warnings:
It's likely that you need to add "cgroup_enable=memory swapaccount=1" to your kernel command line... but I'm just guessing here. |
@cpuguy83 would that essentially be a sysctl command? |
No that's in your boot loader config. |
Ah. I believe this is it: https://www.raspberrypi.org/forums/viewtopic.php?t=203128 |
Yep, this solved the problem. I added cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 to cmdline.txt and now I’m getting mem and cpu graphs in yacht. |
Awesome. Thanks for your help @cpuguy83 ! I'll add documentation to Yacht for this. |
Expected behavior
For
docker stats
to provide information on memory usage on arm64Actual behavior
docker stats
provides 0 information on arm as per this issue:SelfhostedPro/Yacht#115 (comment)
Steps to reproduce the behavior
On a raspberry pi run
docker stats
The text was updated successfully, but these errors were encountered: