-
Notifications
You must be signed in to change notification settings - Fork 39
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
Strange high CPU behavior when running repeating set_timeout_async #3353
Comments
It's the CPU usage of |
At least python 3.8 seems to behave normally on Windows |
A text log of the I added extra code, a The only way I could raise the CPU usage was to repeatedly save the |
I couldn't see significant CPU usage on Mac either. On Linux it's quite apparent though. And with no other packages installed ( Logging |
So far things are pointing in that direction. If no one else on the team get a chance to look at this I should have some time later this week. |
I'm able to replicate this on linux. |
We've got a fix for this in the pipeline. Turns out we had a bug in our use of |
Curious to see if this is the same as what I experienced in #2439 but never found the time to investigate. Now that I checked again, it does seem that the situation has improved with ST4. |
Fixed in 4075 |
Description
A recurring
set_timeout_async
call seems to trigger a weird CPU usage pattern where the CPU usage will spike to 20/30% and then slowly keep getting lower until eventually rising again. Rinse and repeat.Spike and then slow lowering:
Another spike after a couple of minutes:
I've reproduced this on Ubuntu in VM. On my Mac, I can't really see it but then it has a lot more CPUs so the issue might just be harder to notice (since I think CPU usage includes all CPUs).
Steps to reproduce
Packages/User/timeout.py
plugin with this content:Expected behavior
CPU usage should be stable over a longer time when doing nothing.
Actual behavior
CPU usage spikes up and then slowly lowers to spike up again.
Environment
The text was updated successfully, but these errors were encountered: