Closed woodrow-shen closed 1 month ago
This should not be a failure message, but instead a warning. The heuristics for determining priority inversion failures are based on some scheduler run time stats which are not 100% reliable.
Fix committed:
commit e870dd24cb6af5dcc131298243f70db1d0baec44 (HEAD -> master) Author: Colin Ian King colin.i.king@gmail.com Date: Wed Oct 9 23:10:37 2024 +0100
stress-prio-inv: make priority inheritance error a warning
@ColinIanKing Thanks for update.
Hi @ColinIanKing, do you mean that getrusage is not reliable? In our case, the high-priority process does not show any CPU usage (0.00 secs). Could this also be a case of the miscalculating runtime stats?
Hi @ColinIanKing, we've faced an issue when only running
prio-inv
with our riscv platform:Stress-ng versoin: V0.18.00 Kernel version: 6.7.9
As you can see that failure was reported by
prio-inv: mutex priority inheritance appears incorrect, low priority process has far more run time (1.93 secs) than high priority process (0.00 secs)
, and we're still under investigation, but at the same time we'd like to check if the failure is still reasonable as the final summary gives passed as consequence. Furthermore, we're building the master branch to verify this as well, and I bring this for clarification in advance.Thanks, Woodrow