Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4730

Troubleshooting • How to update cgroup in cmdline.txt

$
0
0
As I'm trying to install k3s on my raspberry pi 5, the error I get is

Failed to find memory cgroup, you may need to add "cgroup_memory=1 cgroup_enable=memory" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)

I updated `/boot/firmware/cmdline.txt` to

Code:

console=serial0,115200 console=tty1 root=PARTUUID=c6560f52-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=NLcgroup_memory=1 cgroup_enable=memory
and then reboot. But it doesn't seem to have any effect:

Code:

cat /proc/cgroups#subsys_namehierarchynum_cgroupsenabledcpuset0431cpu0431cpuacct0431blkio0431memory0430devices0431freezer0431net_cls0431perf_event0431net_prio0431pids0431
Also `cat /proc/cmdline` doesn't reflect my changes.

So, I have a new raspberry pi 5 (16GB) installed the official PiOs (without desktop). Any suggestions what might be the issue here?

Statistics: Posted by jeanluca — Fri Feb 07, 2025 9:24 pm — Replies 2 — Views 47



Viewing all articles
Browse latest Browse all 4730

Trending Articles