我尝试使用以下命令挂载内存 cgroup:
sudo mount -t cgroup none /sys/fs/cgroup/memory -o memory
我收到错误:
mount: /sys/fs/cgroup/memory: wrong fs type, bad option, bad superblock on none, missing codepage or helper program, or other error.
我启用了所有 cgroup 内核配置选项,并且可以毫无问题地挂载 cpu、cpuset 和设备 cgroup。
我缺少什么?
操作系统:Raspberry Pi OS Lite(64 位)
内核版本: 5.10.95
在内核命令行文件中启用内存 cgroup 并禁用 cgroupv2cgroup_enable=memory systemd.unified_cgroup_hierarchy=0
解决问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)