【环境信息】
软件信息:
1) OS版本及分支:openEuler-22.03-SP1
2) 内核信息:5.10.0-126.0.0.66.oe2203sp1.aarch64
3) 软件组件:ltp-20220121
用例路径:/opt/ltp
执行结果存放路径:/opt/ltp/results/LTP-RUN-ON-2022*.log
【问题复现步骤】
具体操作步骤:
1.编译ltp,make autotools;./configure;make;make install
2.执行用例:
./runltp -s oom01或者./runltp -p -f mm
出现概率:只在AT机器必现
【预期结果】
用例执行成功
【实际结果】
用例执行失败
Hi hanson_fang, 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 , @zhengzengkai , @刘勇强 , @wangxiongfeng , @朱科潜 , @WangShaoBo , @lujialin , @wuxu_buque , @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 , @Xie XiuQi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
通过cat /proc/meminfo可以获取当前已申请的内存(Committed_AS)和内存申请上限(CommitLimit)。
内核参数overcommit_memory控制内存申请策略,当overcommit_memory=2时,系统会限制内存申请量,当Committed_AS>CommitLimit时会申请失败。
由于在出问题的环境上Committed_AS>CommitLimit,因此当设置overcommit_memory=2时申请内存就会失败。
通过查看进程申请内存大小,发现是apache申请了大量内存,该进程由AT脚本启动。
在关闭apache后,验证用例可测试通过。
已和测试沟通,非内核问题,该issue关闭
/close
登录 后才可以发表评论