sasbro97 Posted May 24, 2023 Share Posted May 24, 2023 For every Docker container I start in the GUI of Unraid I see the following warning: Quote WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. Why? And how can I fix it? I seem to be the first / only one. I did nothing special. Quote Link to comment
lostsoulfly Posted June 16, 2023 Share Posted June 16, 2023 (edited) You're not the only one, but most people probably don't limit docker memory on unraid. I didn't for years. But this started for me after upgrading to 6.12.0, 6.11.0 didn't have this issue for me. Edited June 16, 2023 by lostsoulfly Quote Link to comment
primeval_god Posted June 16, 2023 Share Posted June 16, 2023 (edited) The why is that unRAID 6.12.0 uses cgroups v2 which, if i understand correctly, does not have a controller for limiting swap. The memory limit flag trys to limit both available memory and swap space. What I havent been able to decipher is what the resolution should be, whether a version of docker or option in docker resolves it, or if there is something that can be configured in the kernel, or even if there is a resolution at the moment. For the moment I think we have to just ignore it and accept that docker memory limits dont apply to swap (assuming you even have swap enabled on you unRAID host). Edited June 16, 2023 by primeval_god 1 Quote Link to comment
sasbro97 Posted June 16, 2023 Author Share Posted June 16, 2023 @primeval_god okay got it thanks. I mean anyway its just a warning and not more. Quote Link to comment
primeval_god Posted July 5, 2023 Share Posted July 5, 2023 On 6/16/2023 at 2:20 PM, primeval_god said: The why is that unRAID 6.12.0 uses cgroups v2 which, if i understand correctly, does not have a controller for limiting swap. While i still dont have any way to resolve the messages, i think I was wrong about cgroupv2 not having a way to limit swap. I think I misread something saying that I only has global controls for swappiness. That said the issue is still something to do with how docker and cgroupv2 are interacting. Quote Link to comment
Healzangels Posted December 12, 2023 Share Posted December 12, 2023 Seeing this as well on one of my containers using the memory constraints. Is there a new better way to do this? Quote Link to comment
ogr Posted January 8 Share Posted January 8 Just got this message on one of my containers updates. Never seen it before or changed anything (as far as i can remember). Any clues as to how this affects things and how can I solve it? Quote Link to comment
Jack_Flack Posted March 5 Share Posted March 5 So no one has/knows a solution to this warning? I also have it and not sure what to do about it. Quote Link to comment
Squid Posted March 5 Share Posted March 5 There's nothing to do or solve. Its simply docker giving a warning for everything. Limiting memory on an application does work no problems.... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.