Page 1 of 1

adding cgroups to cmdline.txt on rpi3b+ not taking?

Posted: Tue Aug 04, 2020 3:10 am
by netopsengineer

Running DietPi v6.31.2 on RPi 3 model B+, and used your Docker installer, and all went well, however, when executing docker system info, I get a bunch of warnings at the bottom:

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support

my docker daemon file looks like this per the docs to prepare for Kubernetes:
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
"data-root": "/mnt/dietpi_userdata/docker-data",
"storage-driver": "overlay2"

From reading, I should be able to clear all of those warnings except the cfs related ones by adding the following cgroups, resulting in my cmdline.txt looking like this:

console=tty1 root=PARTUUID=2fed7fee-02 rootfstype=ext4 elevator=deadline rootwait quiet net.ifnames=0 cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1

Upon rebooting, and executing docker system info again, those errors persist. Looking at this output:

cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 6 3 1
cpu 4 25 1
cpuacct 4 25 1
devices 7 25 1
freezer 5 3 1
net_cls 2 3 1
pids 3 26 1

It would appear the Memory cgroup isn't even in there, so just wondering what I'm missing here?