Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

Featured Replies

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.

 

image.thumb.png.7ec356d36a920654b053b80514c32fc0.png

Why? And how can I fix it? I seem to be the first / only one. I did nothing special.

Solved by at0m

  • 4 weeks later...

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 by lostsoulfly

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 by primeval_god

  • Author

@primeval_god okay got it thanks. I mean anyway its just a warning and not more.

  • 3 weeks later...
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.

  • 5 months later...

Seeing this as well on one of my containers using the memory constraints. Is there a new better way to do this?

  • 4 weeks later...

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?

 

  • 1 month later...

So no one has/knows a solution to this warning? I also have it and not sure what to do about it.

There's nothing to do or solve.  Its simply docker giving a warning for everything.  Limiting memory on an application does work no problems....

  • 9 months later...

The thing is that we cannot set the swappiness value to be different from the host, as I only want one container to be able to use swap on my NAS

is there any solution for that ?

  • 3 weeks later...
  • Solution

This is a bit of a necro, but if all you want is the warning to go away, at the top level under the service put memlimit_swap: -1 and  it'll stop throwing the warning.

 

Posting here since this is the top hit on Google when I searched for the warning text and unraid.

On 1/19/2025 at 5:56 PM, at0m said:

This is a bit of a necro, but if all you want is the warning to go away, at the top level under the service put memlimit_swap: -1 and  it'll stop throwing the warning.

 

Posting here since this is the top hit on Google when I searched for the warning text and unraid.

memswap_limit: -1

was working for me inside docker-compose.yml

  • 7 months later...

Hello, I hope people still read this thread. I have this message too. And I didn't understand these answers 100%. So is it correct that this is just a warning or notice but is not a cause for concern or that it affects the reliability of the running container?

The parameters --memory-swap=-1 or memswap_limit: -1 only change that the warning no longer appears, but do not solve the reason for it?

I've already tried adding one of the parameters to my docker-compose.yml for Dawarich, without success. I always get some error messages. However, since I don't really know the syntax, I can't get any further.

Would someone be willing to show me exactly where the parameter should be inserted? I would be happy to post the file here.

greeting

BeUnRaider

! dawarich_app Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

  • Community Expert
39 minutes ago, BeUnRaider said:

Hello, I hope people still read this thread. I have this message too. And I didn't understand these answers 100%. So is it correct that this is just a warning or notice but is not a cause for concern or that it affects the reliability of the running container?

The parameters --memory-swap=-1 or memswap_limit: -1 only change that the warning no longer appears, but do not solve the reason for it?

I've already tried adding one of the parameters to my docker-compose.yml for Dawarich, without success. I always get some error messages. However, since I don't really know the syntax, I can't get any further.

Would someone be willing to show me exactly where the parameter should be inserted? I would be happy to post the file here.

greeting

BeUnRaider

! dawarich_app Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

It's only a warning, you can just ignore it. Also, if your containers are routinely running OOM such that you need to add a limit in the first place, you should consider changing its config so that it's not doing as much work in RAM, or add more RAM.

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.