Bug 9617 - wait_max statistics are inaccurate
Summary: wait_max statistics are inaccurate
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: sched (show other bugs) sched
Version: 5.10.y-17
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: jiefeng
QA Contact: CruzZhao
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-31 18:34 UTC by jiefeng
Modified: 2024-07-31 19:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jiefeng 2024-07-31 18:34:35 UTC
Description of problem:
Once we echo 0 > /proc/pid/sched, the wait_start will be cleared. And if the task is excatly waiting in run queue, the wait_max will be much greater than the actual value, closing to the boot time.

Version-Release number of selected component (if applicable):
devel-5.10

How reproducible:
echo 0 > /proc/[pid]/sched

Steps to Reproduce:
1.echo 0 > /proc/[pid]/sched
2.cat /proc/[pid]/sched | grep wait_max

Actual results:
54768574.070401

Expected results:
29.999171
Comment 1 小龙 admin 2024-07-31 19:00:41 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3582