I created a cgroup named mycgroup using mkdir /sys/fs/cgroup/mycgroup.
Before executing echo +cpu > /sys/fs/cgroup/cgroup.subtree_control:
[root@host ~]# cat /sys/fs/cgroup/mycgroup/cpu.max cat: /sys/fs/cgroup/mycgroup/cpu.max: No such file or directory After executing echo +cpu > /sys/fs/cgroup/cgroup.subtree_control:
[root@host ~]# cat /sys/fs/cgroup/mycgroup/cpu.max max 100000 But after executing systemctl daemon-reload:
[root@host ~]# cat /sys/fs/cgroup/mycgroup/cpu.max cat: /sys/fs/cgroup/mycgroup/cpu.max: No such file or directory Daemon reload is resetting the cgroup.subtree_control file. How do I make the setting permanent so that daemon reload does not remove cpu from the file?