-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
use goroutine pool to copr.(*copIteratorWorker).run #52887
Labels
Comments
Nice catch! This issue impacts the latency and cpu usage more when the coprocessor tasks are small. I've test a read case with tiny coprocessor queries.
The
I'll work on a global goroutine pool in TiDB. The goroutines with short lifetime benefit a lot from it. |
This was referenced May 15, 2024
13 tasks
RidRisR
pushed a commit
to RidRisR/tidb
that referenced
this issue
May 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enhancement
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).run will always do the
runtime.newstack
and it will take many time on it. so we can use goroutine pool to resolve it.https://flamegraph.com/share/7adb104e-02f1-11ef-a542-36adf59c1176
The text was updated successfully, but these errors were encountered: