登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
就在本周六,成都站 Gitee Talk | 模力方舟 AI 应用开发沙龙抢占最后席位!聚焦 AI 开发全链路,结识技术同频人~
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
15
Star
11
Fork
109
src-openEuler
/
systemd
代码
Issues
14
Pull Requests
1
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
cgroup v2模式下,systemd的cpuset配置无法持久化生效
待办的
#ICKON5
缺陷
wanglong1
创建于
2025-07-08 10:54
**【缺陷描述】:请补充详细的缺陷问题现象描述** cgroup v2模式下,systemd的cpuset配置无法持久化生效 **一、缺陷信息** **【缺陷所属的os版本】 openEuler-22.03-LTS-SP1 **【内核版本】 4.19 **【缺陷所属软件及版本号】 [root@localhost ~]# systemctl --version systemd 249 :v249-97 +PAM +AUDIT +SELINUX -APPARMOR +IMA -SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB -ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=legacy **【环境信息】** 硬件信息 VMware x86-64 虚拟机,4核,4g内存 - 虚拟机场景:宿主机:win 11 软件信息 systemd 249 :v249-97 网络信息 无 **【问题复现步骤】:请描述具体的操作步骤** 0、设置相关服务开机自启 systemctl enable containerd 1、配置持久启用 +cpuset 的自定义 systemd unit(例如 containerd) 通过创建一个 drop-in 文件: mkdir -p /etc/systemd/system/containerd.service.d cat <<EOF > /etc/systemd/system/containerd.service.d/10-cpuset.conf [Service] Delegate=cpu cpuset io memory pids EOF 其中,Delegate=xxx可自定义 2、应用上述更改后需要执行以下命令后生效: systemctl daemon-reload systemctl restart containerd 3、 echo +cpuset > /sys/fs/cgroup/cgroup.subtree_control echo +cpuset > /sys/fs/cgroup/system.slice/cgroup.subtree_control cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control 4、重启系统,执行如下命令 cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control **【实际结果】**,如下所示: [root@localhost ~]# cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control cpu io memory pids cpu io memory pids **【期望结果】**,如下所示: [root@localhost ~]# cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control cpuset cpu io memory pids cpuset cpu io memory pids **【其他相关附件信息】** [root@localhost ~]# systemctl status containerd ● containerd.service - containerd container runtime Loaded: loaded (/usr/lib/systemd/system/containerd.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/containerd.service.d └─10-cpuset.conf Active: active (running) since Sat 2025-07-05 04:24:58 CST; 45min ago Docs: https://containerd.io Process: 1037 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS) Main PID: 1053 (containerd) Tasks: 20 Memory: 74.8M CPU: 4.671s CGroup: /system.slice/containerd.service └─ 1053 /usr/bin/containerd Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.733563041+08:00" level=info msg="Start subscribing cont> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.734448649+08:00" level=info msg="Start recovering state" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.734732066+08:00" level=info msg="Start event monitor" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735119416+08:00" level=info msg="Start snapshots syncer" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735148420+08:00" level=info msg="Start cni network conf> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735188198+08:00" level=info msg="Start streaming server" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735465174+08:00" level=info msg=serving... address=/run> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735547451+08:00" level=info msg=serving... address=/run> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.736152497+08:00" level=info msg="containerd successfull> Jul 05 04:24:58 localhost systemd[1]: Started containerd container runtime **【缺陷详情及分析指导参考链接】** **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1
**【缺陷描述】:请补充详细的缺陷问题现象描述** cgroup v2模式下,systemd的cpuset配置无法持久化生效 **一、缺陷信息** **【缺陷所属的os版本】 openEuler-22.03-LTS-SP1 **【内核版本】 4.19 **【缺陷所属软件及版本号】 [root@localhost ~]# systemctl --version systemd 249 :v249-97 +PAM +AUDIT +SELINUX -APPARMOR +IMA -SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB -ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=legacy **【环境信息】** 硬件信息 VMware x86-64 虚拟机,4核,4g内存 - 虚拟机场景:宿主机:win 11 软件信息 systemd 249 :v249-97 网络信息 无 **【问题复现步骤】:请描述具体的操作步骤** 0、设置相关服务开机自启 systemctl enable containerd 1、配置持久启用 +cpuset 的自定义 systemd unit(例如 containerd) 通过创建一个 drop-in 文件: mkdir -p /etc/systemd/system/containerd.service.d cat <<EOF > /etc/systemd/system/containerd.service.d/10-cpuset.conf [Service] Delegate=cpu cpuset io memory pids EOF 其中,Delegate=xxx可自定义 2、应用上述更改后需要执行以下命令后生效: systemctl daemon-reload systemctl restart containerd 3、 echo +cpuset > /sys/fs/cgroup/cgroup.subtree_control echo +cpuset > /sys/fs/cgroup/system.slice/cgroup.subtree_control cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control 4、重启系统,执行如下命令 cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control **【实际结果】**,如下所示: [root@localhost ~]# cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control cpu io memory pids cpu io memory pids **【期望结果】**,如下所示: [root@localhost ~]# cat /sys/fs/cgroup/cgroup.subtree_control cat /sys/fs/cgroup/system.slice/cgroup.subtree_control cpuset cpu io memory pids cpuset cpu io memory pids **【其他相关附件信息】** [root@localhost ~]# systemctl status containerd ● containerd.service - containerd container runtime Loaded: loaded (/usr/lib/systemd/system/containerd.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/containerd.service.d └─10-cpuset.conf Active: active (running) since Sat 2025-07-05 04:24:58 CST; 45min ago Docs: https://containerd.io Process: 1037 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS) Main PID: 1053 (containerd) Tasks: 20 Memory: 74.8M CPU: 4.671s CGroup: /system.slice/containerd.service └─ 1053 /usr/bin/containerd Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.733563041+08:00" level=info msg="Start subscribing cont> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.734448649+08:00" level=info msg="Start recovering state" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.734732066+08:00" level=info msg="Start event monitor" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735119416+08:00" level=info msg="Start snapshots syncer" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735148420+08:00" level=info msg="Start cni network conf> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735188198+08:00" level=info msg="Start streaming server" Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735465174+08:00" level=info msg=serving... address=/run> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.735547451+08:00" level=info msg=serving... address=/run> Jul 05 04:24:58 localhost containerd[1053]: time="2025-07-05T04:24:58.736152497+08:00" level=info msg="containerd successfull> Jul 05 04:24:58 localhost systemd[1]: Started containerd container runtime **【缺陷详情及分析指导参考链接】** **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1
评论 (
3
)
登录
后才可以发表评论
状态
待办的
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
chenjiayi
jiayi0118
负责人
协作者
+负责人
+协作者
标签
DEFECT/UNFIXED
sig/Base-service
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (30)
标签 (44)
master
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-25.09
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-Next
openEuler-25.03
openEuler-24.09
sync-pr831-openEuler-24.03-LTS-to-openEuler-24.03-LTS
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-22.03-LTS-LoongArch
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-21.03
openEuler-20.03-LTS-Next
openEuler-21.09
openEuler-20.09
openEuler1.0-base
openEuler1.0
openEuler-22.03-LTS-SP4-update-20250808
openEuler-20.03-LTS-SP4-update-20250801
openEuler-24.03-LTS-SP2-update-20250711
openEuler-22.03-LTS-SP3-update-20250704
openEuler-22.03-LTS-SP4-update-20250704
openEuler-24.03-LTS-update-20250704
openEuler-24.03-LTS-SP1-update-20250704
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-update-20250530
openEuler-24.03-LTS-SP1-update-20250530
openEuler-25.03-release
openEuler-22.03-LTS-SP3-update-20250307
openEuler-22.03-LTS-SP4-update-20250221
openEuler-24.03-LTS-SP1-release
openEuler-24.03-LTS-update-20241227
openEuler-22.03-LTS-SP1-update-20241227
openEuler-22.03-LTS-SP3-update-20241227
openEuler-22.03-LTS-SP4-update-20241227
openEuler-22.03-LTS-SP4-update-20241213
openEuler-22.03-LTS-SP3-update-20241213
openEuler-22.03-LTS-SP1-update-20241213
openEuler-22.03-LTS-SP1-update-20241206
openEuler-20.03-LTS-SP4-update-20241206
openEuler-22.03-LTS-SP1-update-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/systemd.git
git@gitee.com:src-openeuler/systemd.git
src-openeuler
systemd
systemd
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册