-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
100% cpu usage #519
Comments
When a thread in this program enters this state, does it remain stuck here forever, or does it eventually get unstuck? |
It might also be worth investigating the topmost frame in this stack (the |
Honestly, it might be a good idea to open an issue on |
Sure thing: conradludgate/futures-buffered#10 |
I have not confirmed it, but it's a possibility that I was queueing the entry twice in the same queue. I had put some effort to ensuring exclusive access, but it might not have been sufficient. |
@conradludgate Queueing the same entry twice does seem like a likely explanation — we could probably get stuck if the linked list for the MPSC queue contains an entry that's linked back to itself. Let me know if you're able to confirm that was the problem, and I'll close this issue. If not, I'm happy to help with further investigation. |
Seems we have resolved the issue. It was indeed related to double queuing |
Describe the bug
I cough my long running daemon project consuming 100% of the cpu time (one core), multiple times already, but the problem seems to happen randomly after a while). Plugging gdb suggests it's iroh's discovery, in the
cordyceps
dependency.It's unclear to me which of the chain of dependencies is at fault (probably
cordyceps
?), but I'm dutifully reporting .Platform(s)
Linux x86_64, NixOS, 24.11
The text was updated successfully, but these errors were encountered: