参考Ubuntu 启用 cgroup v2 方式 sudo cat /etc/default/grub ... GRUB_CMDLINE_LINUX="cgroup_no_v1=all systemd.unified_group_hierarchy=1 cgroup_cpu=1 cgroup_enable=cpu" ...
sudo cat /etc/default/grub
GRUB_CMDLINE_LINUX="cgroup_no_v1=all systemd.unified_group_hierarchy=1 cgroup_cpu=1 cgroup_enable=cpu"
sudo update-grub
sudo reboot 重启后, sudo stat -fc %T /sys/fs/cgroup/ cgroup2fs cat /sys/fs/cgroup/cgroup.controllers cpuset io memory hugetlb pids rdma #缺少了cpu项
sudo reboot
sudo stat -fc %T /sys/fs/cgroup/ cgroup2fs
cat /sys/fs/cgroup/cgroup.controllers cpuset io memory hugetlb pids rdma #缺少了cpu项
cgroup v2 启用参考 https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation
echo +cpu > /sys/fs/cgroup/cgroup.subtree_control
-bash: echo: write error: Invalid argument
查了官方资料大意是 cgroup v2不支持实时调度器
https://stackoverflow.com/questions/77148627/cgroupsv2-and-real-time-processes
可是我想起用cgroup v2 做k8s方面的实验,能否解决呢? deepin os/ uos 要怎么设置? centos 系统下 禁用并关闭 rtkit-daemon 就可以了 , 参考 https://access.redhat.com/solutions/6582021
No replies yet
Popular Ranking
Popular Events
参考Ubuntu 启用 cgroup v2 方式
sudo cat /etc/default/grub
...
GRUB_CMDLINE_LINUX="cgroup_no_v1=all systemd.unified_group_hierarchy=1 cgroup_cpu=1 cgroup_enable=cpu"
...sudo update-grub
sudo reboot
重启后,
sudo stat -fc %T /sys/fs/cgroup/ cgroup2fs
cat /sys/fs/cgroup/cgroup.controllers cpuset io memory hugetlb pids rdma #缺少了cpu项
cgroup v2 启用参考
https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation
echo +cpu > /sys/fs/cgroup/cgroup.subtree_control
-bash: echo: write error: Invalid argument
查了官方资料大意是 cgroup v2不支持实时调度器
https://stackoverflow.com/questions/77148627/cgroupsv2-and-real-time-processes
可是我想起用cgroup v2 做k8s方面的实验,能否解决呢? deepin os/ uos 要怎么设置?
centos 系统下 禁用并关闭 rtkit-daemon 就可以了 , 参考 https://access.redhat.com/solutions/6582021