【标题描述】使用acl cache优化路径查找性能
【环境信息】
硬件信息:
NA
软件信息:
OLK
【问题复现步骤】
mkdir -p ovl/lower1 ovl/upper ovl/work1 ovl/merge1
mount -t overlay none -olowerdir=/root/ovl/lower1,upperdir=/root/ovl/upper,workdir=/root/ovl/work1 /root/ovl/merge1
mkdir -p /root/ovl/merge1/pa/pb/pc/pd/pe/
touch /root/ovl/merge1/pa/pb/pc/pd/pe/file
chown freg:freg -R /root/ovl/merge1/*
gcc -o bb b.c
./bb
【预期结果】
合入优化补丁后执行时间变短
【实际结果】
us 合入补丁前 合入补丁后
5.10(物理机) 2590591 2188672(fix)
【附件信息】
b.c
int main(void)
{
int i = 0;
for (i = 0; i < 1000000; ++i)
access("/root/ovl/merge1/pa/pb/pc/pd/pe/file", F_OK);
return 0;
}
Hi czh549642238, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @YangYingliang , @成坚 (CHENG Jian) , @jiaoff , @刘勇强 , @wangxiongfeng , @朱科潜 , @WangShaoBo , @lujialin , @Xu Kuohai , @冷嘲啊 , @Lingmingqiang , @yuzenghui , @juntian , @OSSIM , @陈结松 , @whoisxxx , @koulihong , @刘恺 , @hanjun-guo , @woqidaideshi , @Chiqijun , @Kefeng , @ThunderTown , @AlexGuo , @kylin-mayukun , @Zheng Zucheng , @柳歆 , @Jackie Liu , @zhujianwei001 , @郑振鹏 , @SuperSix173 , @colyli , @Zhang Yi , @htforge , @Qiuuuuu , @Yuehaibing , @xiehaocheng , @guzitao , @CTC-Xibo.Wang , @zhanghongchen , @chen wei , @Jason Zeng , @苟浩 , @DuanqiangWen , @georgeguo , @毛泓博 , @AllenShi , @zhangjialin , @Wei Li , @tcc@hello , @谭小飞 , @Fred Kimmy , @LiYihang , @young1c , @hucz , @WangBoe2022 , @chenke , @李力军 , @Yang Shen , @wsoydl , @sanglipeng , @zhangchangzhong , @jimmy_hero , @YGN-NDWD-Official , @Xie XiuQi , @zhengzengkai
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
您好,很感谢您的提交,您能详细说下优化的原理,或提交相应PR吗?
登录 后才可以发表评论