-
-
Notifications
You must be signed in to change notification settings - Fork 178
bug: very high CPU usage from events server (Rust 1.78.0 regression) #341
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Configurations tested:
† Image overwritten by |
All signs point to a regression in Rust currently. |
Something changed in Rust 1.78.0 that is causing very high CPU usage: https://releases.rs/docs/1.78.0/ |
I narrowed down part of the problem to this commit in Rust. If I revert the changes in that commit on top Rust 1.85, the high cpu usage goes away. Next step is to find which dependency is getting affected by that change. |
Unfortunately this regression is not stable: various build options can make it disappear or reappear. For example |
Due to upgrades of dependancies we're unable to keep using older rust version, so this has become a high priority to solve.
Yeah this was causing our github workers to run out of memory and subsequently crash. The logs are expired now, but you can see the termination reason (here)[https://github.com/revoltchat/backend/actions/runs/12522200721/job/34930244359] (under annotations). |
i suspect this is "just" a bug and the Waker commit needs to be reverted. the fact that it's related to codegen units is very convincing to me, that should not affect observable behavior. cc @tmiasko |
if you want to try and keep the second optimization, you could try |
What happened?
Something changed between 20240805-1 and 20240829-3 that is causing very high CPU usage.
The text was updated successfully, but these errors were encountered: