I have a tinker board 2s (like raspberry pi) running debian on kernel 4.4.194.
I enabled cgroups v2
by adding systemd.unified_cgroup_hierarchy=1
into the /boot/cmdline.txt
file as supposed to.
the result of ls /sys/fs/cgroup/
is:
cgroup.controllers cgroup.procs cgroup.subtree_control init.scope system.slice user.slice
which is correct it seems.
However, according to this guide, now I need to add cpu
and chipset
into the cgroup.subtree_control
as well, but this is where i am stuck.
echo '+cpu' >> /sys/fs/cgroup/cgroup.subtree_control
echo '+cpuset' >> /sys/fs/cgroup/cgroup.subtree_control
these results in permission denied errors... even when i sudo echo it, it results in the same thing.
ls -l for /sys/fs/cgroup
shows:
-r--r--r-- 1 root root 0 Dec 2 06:52 cgroup.controllers
-rw-r--r-- 1 root root 0 Dec 2 06:29 cgroup.procs
-rw-r--r-- 1 root root 0 Dec 2 06:53 cgroup.subtree_control
drwxr-xr-x 2 root root 0 Dec 2 06:19 init.scope
drwxr-xr-x 53 root root 0 Dec 2 06:33 system.slice
drwxr-xr-x 4 root root 0 Dec 2 06:19 user.slice
I'm at at loss as to who to add cpu and chipset into cgroup v2...
My purpose is to install kubernetes and connect the boards up as a cluster. but kubeadm failed saying that CPU and CPUSET is not found. That problem then led me to cgroups v2.
sudo echo
, I think the problem you're experiencing is related to stackoverflow.com/questions/36853564/… Try those solutions out, or justsudo -i
and then run the echo from the root shell.