Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
15
Star
11
Fork
109
src-openEuler
/
systemd
Closed
Code
Issues
9
Pull Requests
2
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
openEuler systemd的行为和centos不一致
Done
#I8R75J
Bug
吴凡
Opened this issue
2023-12-25 17:52
openEuler上安装社区版本docker。 修改docker配置文件如下: [root@hh-mtos-diagnose-dev01 wxx.slice]# cat /etc/docker/daemon.json { "exec-opts": ["native.cgroupdriver=systemd"] } 重启docker systemctl restart docker 复现命令如下: ``` #!/bin/bash #通过如下两行创建wxx.slice(备注:使用什么容器镜像测试都可以) docker run -itd --name wxx --cgroup-parent wxx.slice centos7 bash docker rm -f wxx #设置wxx.slice的CPUQuota为2核 systemctl set-property wxx.slice CPUQuota=200% cat /sys/fs/cgroup/cpu/wxx.slice/cpu.cfs_quota_us #设置wxx.slice的cpu.cfs_quota_us为8核 echo 800000 > /sys/fs/cgroup/cpu/wxx.slice/cpu.cfs_quota_us cat /sys/fs/cgroup/cpu/wxx.slice/cpu.cfs_quota_us #启动容器,openEuler上启动会报错,centos上正常启动 #openEuler上启动会报错的原因是systemd会把wxx.slice的cpu.cfs_quota_us回写为2核。希望找到sytemd哪个patch导致的这个行为。 docker run -itd --name wxx --cpu-period 100000 --cpu-quota 400000 --cgroup-parent wxx.slice centos7 bash #清理操作 docker rm -f wxx ``` 上述脚本在centos7上和openEuler22.03上的行为不一致。在创建4核的容器是,openEuler22.03上的systemd会回写wxx.slice的CPUQuota为200%,但是centos7上不会。想找下根因。 centos7上systemd版本:systemd 219 openEuler上systemd版本:systemd 249 openEuler报错截屏: 
openEuler上安装社区版本docker。 修改docker配置文件如下: [root@hh-mtos-diagnose-dev01 wxx.slice]# cat /etc/docker/daemon.json { "exec-opts": ["native.cgroupdriver=systemd"] } 重启docker systemctl restart docker 复现命令如下: ``` #!/bin/bash #通过如下两行创建wxx.slice(备注:使用什么容器镜像测试都可以) docker run -itd --name wxx --cgroup-parent wxx.slice centos7 bash docker rm -f wxx #设置wxx.slice的CPUQuota为2核 systemctl set-property wxx.slice CPUQuota=200% cat /sys/fs/cgroup/cpu/wxx.slice/cpu.cfs_quota_us #设置wxx.slice的cpu.cfs_quota_us为8核 echo 800000 > /sys/fs/cgroup/cpu/wxx.slice/cpu.cfs_quota_us cat /sys/fs/cgroup/cpu/wxx.slice/cpu.cfs_quota_us #启动容器,openEuler上启动会报错,centos上正常启动 #openEuler上启动会报错的原因是systemd会把wxx.slice的cpu.cfs_quota_us回写为2核。希望找到sytemd哪个patch导致的这个行为。 docker run -itd --name wxx --cpu-period 100000 --cpu-quota 400000 --cgroup-parent wxx.slice centos7 bash #清理操作 docker rm -f wxx ``` 上述脚本在centos7上和openEuler22.03上的行为不一致。在创建4核的容器是,openEuler22.03上的systemd会回写wxx.slice的CPUQuota为200%,但是centos7上不会。想找下根因。 centos7上systemd版本:systemd 219 openEuler上systemd版本:systemd 249 openEuler报错截屏: 
Comments (
8
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/Base-service
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(5)
1
https://gitee.com/src-openeuler/systemd.git
git@gitee.com:src-openeuler/systemd.git
src-openeuler
systemd
systemd
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register