Replies: 2 comments
-
Would you happen to have a repro or code examples? There could be many reasons; without more data, it is hard to say. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I got the same problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm currently spawning about 50,000 tokio threads using
tokio::spawn
and joining all at end.Each thread has relatively simple task, taking about 100ms ~ 1s
The problem is tokio seems to be not utilizing full cpu for concurrent job.
How can I solve this problem?
It seems code right after spawn executes after some time passed. -> I'm using loop for spawn so checked at end of loop that every spawning code have done executing
tokio::spawn
I've checked with two machine and having same behavior. -> Utilizing about 20% (when inside task is slightly simple data) of cpu or 80% (when inside task is slightly complex with data)
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions