无法以 root 身份创建

无法以 root 身份创建
$ sudo touch /sys/fs/cgroup/memory/baloo/memory.limit_in_bytes
touch: cannot touch '/sys/fs/cgroup/memory/baloo/memory.limit_in_bytes': Permission denied
$ mount | grep cgroup
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
# echo 1024M >/sys/fs/cgroup/memory/baloo/memory.limit_in_bytes
bash: /sys/fs/cgroup/memory/baloo/memory.limit_in_bytes: Permission denied

这可能是由于 cGroup/Linux 拒绝这个参数,但我不明白为什么

相关内容