Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scx_lavd: run_time_ns may vary too many for Dhrystones like process #1113

Open
archerbroler opened this issue Dec 17, 2024 · 0 comments
Open
Labels
enhancement New feature or request scx_lavd

Comments

@archerbroler
Copy link

Dhrystones like process is a single thread with high acc_run_time_ns accumalated.
acc_run_time_ns will be set to 0 when runnable, but thread like this will keep running resulting in larger than 1s acc_run_time_ns .
When thread like this quiescent and then runnable, the acc_run_time_ns is set to 0.

run_time_ns is update when stopping, this means after a long single run, run_time_ns is avg calc with the new much smaller acc_run_time_ns. Which will cause a big drop in run_time_ns value.

This influence the perf_cri, lat_cri, vdeadline and est_stopping_time calc.

I think the EWMA are weak to situation like this. Maybe util_est in PELT like method can help?

@multics69 multics69 added enhancement New feature or request scx_lavd labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scx_lavd
Projects
None yet
Development

No branches or pull requests

2 participants