-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reduce the cpu cycles in runtime.findrunnable #1942
Comments
We've seen this a lot as well. Reducing this cost is definitely one of our priorities going forward. |
Even though it originated in |
@tanjianfeng I am collecting a set of canonical benchmarks to use when working on this problem. If you have any good benchmark workloads that particularly suffer from this that you can share, that would be helpful. |
Sorry for late response. #2033 is an example in hand. |
A friendly reminder that this issue had no activity for 120 days. |
This issue has been closed due to lack of activity. |
This code path is indeed very slow in go schedule:
And this is a generic problem in Go. "the cumulative time spent in runtime.runqsteal was the largest contributor to the cumulative time of runtime.findrunnable".
Historically, people relief this issue by reducing GOMAXPROCS. But in our case, we cannot simplily do that, as smaller GOMAXPROCS leads to larger latency when load becomes larger.
Some unmature ideas:
Any thoughts?
The text was updated successfully, but these errors were encountered: