登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
医疗 AI 怎么落地?本周四晚 19:30,「智医灵枢」开发者直播开讲,来听听一线医院的实战分享!
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
13
Star
20
Fork
172
src-openEuler
/
glibc
代码
Issues
9
Pull Requests
3
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
2.34 glibc 接口性能下降问题
已完成
#I7C2H4
任务
lijianglin
创建于
2023-06-08 20:26
对比glibc 2.34和glibc 2.28,fstat接口性能有所下降。 测试文件: #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { struct stat sb; int i = 0; for(i;i<50000;i++) { if (fstat(0, &sb) == -1) { perror("stat"); } } } 测试结果: fstat的性能对比: 2.34 [root@localhost home]# time ./a.out real 0m0.055s user 0m0.017s sys 0m0.037s [root@localhost home]# time ./a.out real 0m0.054s user 0m0.020s sys 0m0.034s [root@localhost home]# time ./a.out real 0m0.055s user 0m0.011s sys 0m0.043s [root@localhost home]# time ./a.out real 0m0.054s user 0m0.017s sys 0m0.037s 2.28 [root@localhost home]# time ./a.out real 0m0.041s user 0m0.019s sys 0m0.022s [root@localhost home]# time ./a.out real 0m0.041s user 0m0.021s sys 0m0.020s [root@localhost home]# time ./a.out real 0m0.041s user 0m0.017s sys 0m0.024s [root@localhost home]# time ./a.out real 0m0.041s user 0m0.019s sys 0m0.023s 这是什么原因?麻烦解决一下
对比glibc 2.34和glibc 2.28,fstat接口性能有所下降。 测试文件: #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { struct stat sb; int i = 0; for(i;i<50000;i++) { if (fstat(0, &sb) == -1) { perror("stat"); } } } 测试结果: fstat的性能对比: 2.34 [root@localhost home]# time ./a.out real 0m0.055s user 0m0.017s sys 0m0.037s [root@localhost home]# time ./a.out real 0m0.054s user 0m0.020s sys 0m0.034s [root@localhost home]# time ./a.out real 0m0.055s user 0m0.011s sys 0m0.043s [root@localhost home]# time ./a.out real 0m0.054s user 0m0.017s sys 0m0.037s 2.28 [root@localhost home]# time ./a.out real 0m0.041s user 0m0.019s sys 0m0.022s [root@localhost home]# time ./a.out real 0m0.041s user 0m0.021s sys 0m0.020s [root@localhost home]# time ./a.out real 0m0.041s user 0m0.017s sys 0m0.024s [root@localhost home]# time ./a.out real 0m0.041s user 0m0.019s sys 0m0.023s 这是什么原因?麻烦解决一下
评论 (
3
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已拒绝
负责人
未设置
标签
sig/Computing
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (29)
标签 (58)
master
openEuler-25.09
openEuler-24.03-LTS-Next
openEuler-22.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-24.03-LTS
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP1
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP1
openEuler-25.03
openEuler-24.09
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-Next
openEuler-22.03-LTS
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.03-LTS-LoongArch
openEuler-22.09
openEuler-20.03-LTS-Next
openEuler-20.03-LTS
openEuler-20.03-LTS-SP2
openEuler-21.09
openEuler-21.03
openEuler-20.09
openEuler1.0
openEuler1.0-base
openEuler-22.03-LTS-SP3-update-20250815
openEuler-24.03-LTS-SP2-update-20250815
openEuler-24.03-LTS-update-20250815
openEuler-22.03-LTS-SP4-update-20250815
openEuler-24.03-LTS-SP1-update-20250815
openEuler-20.03-LTS-SP4-update-20250815
openEuler-24.03-LTS-SP2-release
openEuler-20.03-LTS-SP4-update-20250606
openEuler-22.03-LTS-SP3-update-20250606
openEuler-22.03-LTS-SP4-update-20250606
openEuler-24.03-LTS-update-20250606
openEuler-24.03-LTS-SP1-update-20250606
openEuler-25.03-release
openEuler-22.03-LTS-SP3-update-20250307
openEuler-22.03-LTS-SP4-update-20250307
openEuler-20.03-LTS-SP4-update-20250307
openEuler-24.03-LTS-SP1-update-20250221
openEuler-24.03-LTS-update-20250221
openEuler-24.03-LTS-SP1-release
openEuler-24.03-LTS-update-20241213
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-SP4-update-20241206
openEuler-22.03-LTS-SP3-update-20241206
openEuler-22.03-LTS-SP1-update-20241206
openEuler-22.03-LTS-SP1-update-20241129
openEuler-22.03-LTS-SP3-update-20241129
openEuler-22.03-LTS-SP4-update-20241129
openEuler-22.03-LTS-SP4-update-20241122
openEuler-22.03-LTS-SP3-update-20241122
openEuler-22.03-LTS-SP4-update-20241108
openEuler-22.03-LTS-SP3-update-20241108
openEuler-22.03-LTS-SP1-update-20241108
openEuler-22.03-LTS-SP4-update-before-20241025
openEuler-22.03-LTS-SP4-before-20241025
openEuler-24.03-LTS-update-before-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-22.03-LTS-SP4_update20240819
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/glibc.git
git@gitee.com:src-openeuler/glibc.git
src-openeuler
glibc
glibc
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册