-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
High cpu usage #3777
Comments
The typical reason for the runtime not being able to exit is if there are tasks spawned with Regarding the backtrace, I assume that's not the only thread? And could you try it with debug symbols turned on? Note that you can turn on debug symbols while still using release mode. |
only thread (gdb) info threads
|
。。。。,use
the fd is RawFd the code
|
@silence-coding if you're seeing high cpu usage it would be useful if you could generate a flamegraph (https://github.com/flamegraph-rs/flamegraph) so we can see where the time is being spent. Do you think you could do that for us? |
@udoprog I don't know how to reproduce it. |
@silence-coding All right. Seems like you figured out it's probably not caused by Tokio though by stepping through the assembly. Sweet work! I guess it means this issue can be closed here? |
All right |
Version
[[package]]
name = "tokio"
version = "0.2.13"
Platform
Linux OMP-01 4.18.0-147.5.1.2.h340.eulerosv2r9.x86_64 ................ x86_64 x86_64 x86_64 GNU/Linux
Description
When the process exits, the process does not exit completely, and the CPU usage is high.
TOP

GDB
The text was updated successfully, but these errors were encountered: