Read and set CPU quota (cgroup v2) cgroups

cpu.max is 'quota period' in usec; 'max' = no limit. note: prefer systemctl set-property

cat /sys/fs/cgroup/system.slice/<name>.service/cpu.max # "max 100000" = unlimited; "50000 100000" = 0.5 core
more cgroups all 8 commands →