登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
2025 Gitee 年度开源项目评选投票进行中,快为你的心仪项目助力!
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
15
Star
11
Fork
110
src-openEuler
/
systemd
关闭
代码
Issues
9
Pull Requests
2
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
systemd-249 在容器环境下出现严重的可用性问题
已完成
#IAUE8E
任务
zhaoxiaohu
成员
创建于
2024-09-29 09:43
系统环境:openeuler 22.03 sp1 + systemd-249 问题:容器云实例启动挂载失败问题,出现25秒的timeout 机器配置:384核  业务类型:容器实例 使用qemu-system-x86启动 挂载了4千~6千的mount点 大约每个 qemu 会挂载100+的mount ``` # cat /proc/1/mountinfo | grep kata | wc -l 4462 ``` 问题现象: 1、容器创建实例响应 timeout 2、ssh登陆及执行系统命令vim/ps/top/systemctl卡顿慢 top查看系统负载比较高  查看systemd的CPU持续标高  查看 systemdcpu100%运行,无法看到运行态栈内容  查看dbus接口状态正常  接口CONNECTION点: 这里解释下:例如 D-Bus连接名称org.freedesktop.hostname1(CONNECTION :1.1702765)中的数字部分是一个递增的计数器,表示自系统启动以来D-Bus总线分配的连接数。因此,1702765 表示这是第 1,702,765 次连接请求  查看时间系统是8.30号交付的,一个月的时间有170万次的链接。 查看dbus接口的状态,dbus接口一直在处理event事件 dbus-monitor --system  perf 抓去systemd 热点 perf record -a -g -F99 --call-graph dwarf,40960 -p 1 -- sleep 120 perf report --stdio -G ``` # perf report --stdio -G # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 5K of event 'cycles' # Event count (approx.): 155713306543 # # Children Self Command Shared Object Symbol # ........ ........ ....... ........................ .......................................... # 99.36% 0.00% systemd systemd [.] 0x000056363a1b9b34 | ---0x56363a1b9b34 __libc_start_main 0x7f3e5e288f0f 0x56363a1b8a47 0x56363a200e5f sd_event_run sd_event_dispatch 0x7f3e5e75e28f | --99.04%--0x56363a273f4f | |--88.60%--0x56363a26dd13 | | | |--72.74%--0x56363a26ad35 | | | | | |--50.29%--0x56363a2669df | | | | | | | |--47.04%--0x56363a240d29 | | | | | | | | | --46.97%--_hashmap_iterate | | | | | | | | | |--8.65%--0x7f3e5e69e905 | | | | | | | | | |--4.77%--0x7f3e5e69e931 | | | | | | | | | |--4.22%--0x7f3e5e69e900 | | | | | | | | | |--3.21%--0x7f3e5e69e92d | | | | | | | | | |--3.15%--0x7f3e5e69e88c | | | | | | | | | |--1.98%--0x7f3e5e69e8f4 | | | | | | | | | |--1.88%--0x7f3e5e69e920 | | | | | | | | | |--1.19%--0x7f3e5e69e8d6 | | | | | | | | | |--0.70%--0x7f3e5e69e84f | | | | | | | | | |--0.65%--0x7f3e5e69e91a | | | | | | | | | --0.58%--0x7f3e5e69e877 | | | | | | | --2.59%--0x56363a240d33 | | | | | --21.54%--0x56363a266af4 | | sd_device_get_property_value | | | | | --21.52%--device_properties_prepare | | | | | |--14.95%--device_read_db_internal | | | | | | | |--13.57%--device_read_db_internal_filename | | | | | | | | | |--4.59%--0x7f3e5e71ef39 | | | | | device_add_property_aux | | | | | | | | | | | |--3.12%--hashmap_replace | | | | | | | | | | | | | |--1.72%--0x7f3e5e6a3f9c | | | | | | | | | | | | | | | --0.54%--0x7f3e5e6a3c96 | | | | | | | | | | | | | --0.66%--0x7f3e5e6a3ef4 | | | | | | | | | | | |--0.68%--__strdup | | | | | | | | | | | | | --0.53%--malloc | | | | | | | | | | | --0.60%--hashmap_get2 | | | | | | | | | |--3.91%--0x7f3e5e71ef53 | | | | | device_add_property_aux | | | | | | | | | | | |--2.48%--hashmap_replace | | | | | | | | | | | | | |--1.28%--0x7f3e5e6a3f9c | | | | | | | | | | | | | --0.53%--0x7f3e5e6a3ef4 | | | | | | | | | | | |--0.62%--__strdup | | | | | | | | | | | | | --0.51%--malloc | | | | | | | | | | | --0.58%--hashmap_get2 | | | | | | | | | |--1.68%--read_full_file_full | | | | | | | | | | | |--0.84%--read_full_stream_full | | | | | | | | | | | | | --0.56%--_IO_fread | | | | | | | | | | | --0.73%--xfopenat | | | | | | | | | | | --0.71%--0x7f3e5e2d399c | | | | | _IO_file_fopen | | | | | | | | | | | --0.67%--_IO_file_open | | | | | open64 | | | | | | | | | | | --0.65%--entry_SYSCALL_64_after_hwframe | | | | | do_syscall_64 | | | | | do_sys_open | | | | | do_sys_openat2 | | | | | | | | | | | --0.58%--do_filp_open | | | | | path_openat | | | | | | | | | --0.55%--0x7f3e5e3ed391 | | | | | | | --1.36%--device_get_device_id | | | | | | | --1.20%--sd_device_get_subsystem | | | | | | | --1.01%--readlink_value | | | | | | | --0.92%--readlinkat_malloc ```   用户态CPU占用集中在sd_event_run->sd_event_dispatch->...->mount_process_proc_self_mountinfo->...device_found_node
系统环境:openeuler 22.03 sp1 + systemd-249 问题:容器云实例启动挂载失败问题,出现25秒的timeout 机器配置:384核  业务类型:容器实例 使用qemu-system-x86启动 挂载了4千~6千的mount点 大约每个 qemu 会挂载100+的mount ``` # cat /proc/1/mountinfo | grep kata | wc -l 4462 ``` 问题现象: 1、容器创建实例响应 timeout 2、ssh登陆及执行系统命令vim/ps/top/systemctl卡顿慢 top查看系统负载比较高  查看systemd的CPU持续标高  查看 systemdcpu100%运行,无法看到运行态栈内容  查看dbus接口状态正常  接口CONNECTION点: 这里解释下:例如 D-Bus连接名称org.freedesktop.hostname1(CONNECTION :1.1702765)中的数字部分是一个递增的计数器,表示自系统启动以来D-Bus总线分配的连接数。因此,1702765 表示这是第 1,702,765 次连接请求  查看时间系统是8.30号交付的,一个月的时间有170万次的链接。 查看dbus接口的状态,dbus接口一直在处理event事件 dbus-monitor --system  perf 抓去systemd 热点 perf record -a -g -F99 --call-graph dwarf,40960 -p 1 -- sleep 120 perf report --stdio -G ``` # perf report --stdio -G # To display the perf.data header info, please use --header/--header-only options. # # # Total Lost Samples: 0 # # Samples: 5K of event 'cycles' # Event count (approx.): 155713306543 # # Children Self Command Shared Object Symbol # ........ ........ ....... ........................ .......................................... # 99.36% 0.00% systemd systemd [.] 0x000056363a1b9b34 | ---0x56363a1b9b34 __libc_start_main 0x7f3e5e288f0f 0x56363a1b8a47 0x56363a200e5f sd_event_run sd_event_dispatch 0x7f3e5e75e28f | --99.04%--0x56363a273f4f | |--88.60%--0x56363a26dd13 | | | |--72.74%--0x56363a26ad35 | | | | | |--50.29%--0x56363a2669df | | | | | | | |--47.04%--0x56363a240d29 | | | | | | | | | --46.97%--_hashmap_iterate | | | | | | | | | |--8.65%--0x7f3e5e69e905 | | | | | | | | | |--4.77%--0x7f3e5e69e931 | | | | | | | | | |--4.22%--0x7f3e5e69e900 | | | | | | | | | |--3.21%--0x7f3e5e69e92d | | | | | | | | | |--3.15%--0x7f3e5e69e88c | | | | | | | | | |--1.98%--0x7f3e5e69e8f4 | | | | | | | | | |--1.88%--0x7f3e5e69e920 | | | | | | | | | |--1.19%--0x7f3e5e69e8d6 | | | | | | | | | |--0.70%--0x7f3e5e69e84f | | | | | | | | | |--0.65%--0x7f3e5e69e91a | | | | | | | | | --0.58%--0x7f3e5e69e877 | | | | | | | --2.59%--0x56363a240d33 | | | | | --21.54%--0x56363a266af4 | | sd_device_get_property_value | | | | | --21.52%--device_properties_prepare | | | | | |--14.95%--device_read_db_internal | | | | | | | |--13.57%--device_read_db_internal_filename | | | | | | | | | |--4.59%--0x7f3e5e71ef39 | | | | | device_add_property_aux | | | | | | | | | | | |--3.12%--hashmap_replace | | | | | | | | | | | | | |--1.72%--0x7f3e5e6a3f9c | | | | | | | | | | | | | | | --0.54%--0x7f3e5e6a3c96 | | | | | | | | | | | | | --0.66%--0x7f3e5e6a3ef4 | | | | | | | | | | | |--0.68%--__strdup | | | | | | | | | | | | | --0.53%--malloc | | | | | | | | | | | --0.60%--hashmap_get2 | | | | | | | | | |--3.91%--0x7f3e5e71ef53 | | | | | device_add_property_aux | | | | | | | | | | | |--2.48%--hashmap_replace | | | | | | | | | | | | | |--1.28%--0x7f3e5e6a3f9c | | | | | | | | | | | | | --0.53%--0x7f3e5e6a3ef4 | | | | | | | | | | | |--0.62%--__strdup | | | | | | | | | | | | | --0.51%--malloc | | | | | | | | | | | --0.58%--hashmap_get2 | | | | | | | | | |--1.68%--read_full_file_full | | | | | | | | | | | |--0.84%--read_full_stream_full | | | | | | | | | | | | | --0.56%--_IO_fread | | | | | | | | | | | --0.73%--xfopenat | | | | | | | | | | | --0.71%--0x7f3e5e2d399c | | | | | _IO_file_fopen | | | | | | | | | | | --0.67%--_IO_file_open | | | | | open64 | | | | | | | | | | | --0.65%--entry_SYSCALL_64_after_hwframe | | | | | do_syscall_64 | | | | | do_sys_open | | | | | do_sys_openat2 | | | | | | | | | | | --0.58%--do_filp_open | | | | | path_openat | | | | | | | | | --0.55%--0x7f3e5e3ed391 | | | | | | | --1.36%--device_get_device_id | | | | | | | --1.20%--sd_device_get_subsystem | | | | | | | --1.01%--readlink_value | | | | | | | --0.92%--readlinkat_malloc ```   用户态CPU占用集中在sd_event_run->sd_event_dispatch->...->mount_process_proc_self_mountinfo->...device_found_node
评论 (
15
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已拒绝
负责人
未设置
标签
sig/Base-service
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (32)
标签 (48)
master
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
sync-pr943-openEuler-24.03-LTS-to-openEuler-24.03-LTS-SP3
openEuler-24.03-LTS
openEuler-24.03-LTS-SP3
openEuler-25.09
openEuler-22.03-LTS-SP4
openEuler-22.03-LTS-SP3
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-24.03-LTS-SP2-update-20251011
openEuler-24.03-LTS-update-20251011
openEuler-24.03-LTS-SP1-update-20251011
openEuler-25.09-release
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 帐号,请先登录后再操作。
立即登录
没有帐号,去注册