Linux – how to disable cgroups

One liner:

# grep -v ^# /proc/cgroups|cut -f 1|xargs -ifoo echo -n foo,
cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids,

Add the list to cgroup_disable= kernel parameter in the bootloader configuration, for example to /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT=”cgroup_disable=cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids