Skip to content

dts: cgroup: remove cgroup_disable=memory parameter#7442

Open
ferferga wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
ferferga:cgroup_disable-remove
Open

dts: cgroup: remove cgroup_disable=memory parameter#7442
ferferga wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
ferferga:cgroup_disable-remove

Conversation

@ferferga

Copy link
Copy Markdown

This was introduced in commit 86099de

In issue #6980, it is commented that appending cgroup_enable=memory fixes the issue. However, as seen in the code changes of the commit, this only works if the kernel in use is Raspberry Pi's own kernel. Kernel from other distros like Ubuntu or Debian doesn't have that patch, so appending cgroup_enable=memory doesn't solve the issue there. I can confirm that compiling this DTB allows Docker to enforce memory limits.

Given distros like Ubuntu or Debian still rely on the .dtb (Debian does it through the raspi-firmware package), I think it's sensible to remove this flag altogether. A few Google searches can be found about this topic and, given Docker is now ubiquituous and commonly used, having to manually adjust this is, in my opinion, more problematic than worth it. Most Raspberry Pis have more than 1 GB now so this argument should be opt-in (not opt-out) by default and can be documented elsewhere in case users want to make the most out of their memory (although, in my opinion, this falls more in the area of micro-optimization with negligible returns).

Signed-off-by: GitHub <noreply@github.com>
@ferferga ferferga changed the title dto: cgroup: remove cgroup_disable=memory parameter dts: cgroup: remove cgroup_disable=memory parameter Jun 16, 2026
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

Successfully merging this pull request may close these issues.

1 participant