430 Star 1.6K Fork 1.7K

GVPopenEuler/kernel

【OLK-5.10】调度专项执行,ps aux查看进程cpu占用率数据异常

已完成
任务
创建于  
2024-08-08 10:32

【严重程度】 一般
【特性】
【重现类型】 有条件概率重现
【定位分析】


在极端场景,一个用户态的程序几乎陷入内核态运行,/proc/xx/stat 中第14个字段统计的utime无符号反转出现超大值,根本原因是cputime_adjust()流程中调用mul_u64_u64_div_u64()接口,由于mul_u64_u64_div_u64()精度问题,导致数据转换出来的stime > rtime,最终出现utime = rtime - stime < 0 出现无符号数据反转,修复方案是mul_u64_u64_div_u64()转换后,必须保证stime <= rtime,否则重新初始化stime = rtime。


评论 (1)

hulk-robot 创建了任务 9个月前

Hi zhixiuzhou, 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.

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
分支
参与者(2)
5329419 openeuler ci bot 1632792936 hulk-robot-zhixiuzhou
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助