runtime/cgo: parallel calls from C to Go causes high mutex lock contention on system with large CPUs #60961
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
See https://groups.google.com/g/golang-nuts/c/rgKT2ptyeGQ/m/7i6tnfuuBAAJ.
What did you expect to see?
Program do not spend much time on lock/unlock.
What did you see instead?
Half of the time on lock contention.
Here's slightly version of original program:
The text was updated successfully, but these errors were encountered: