-
Notifications
You must be signed in to change notification settings - Fork 217
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
low benchmark and cpu bottleneck issue #437
Comments
I'm interested in this which seems similar issue I met before. Does this PR#419 fix your problem? |
currently I just simply disable parking_lot in tokio. I run your PR bench in my machine.
but honestly I do not like the idea of thread::sleep(1ms), I think it maybe hurt performance in other way |
|
but the choise of 1ms seems have no specific reason. why choose 1ms, not 0.5ms. |
We have a video/audio streaming application build on tokio(which enable parking_lot by default), when parking_lot is enabled, when we use wrk to bench http output of the streaming application, the application is bottlenecked in cpu, no matter
how many threads(32 threads for example, it should reach 3200% at most) we assign to tokio, the cpu of our application can not exceed 600%.
after disable parking_lot, we can reach the number we anticipated.
the benchmark for parking_lot is very pool in our server(AMD EPYC 7502, Rocky linux 9.3, Kernel 5.14.0-362.8.1.el9_3.x86_64)
cargo run --release 32 2 10000 100
system information:
CPU
memory: 250G
numactl --show
The text was updated successfully, but these errors were encountered: