cmd/compile: unable to fully utilize CPU after upgrading from Go 1.20 to 1.21 #63115
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
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
)?Debian 12.1 with an i7-1165g7.
go env
OutputWhat did you do?
I compiled and executed the snippet of code below.
What did you expect to see?
I expected to see all 4 cores / 8 threads hit 4.1GHz during turbo boost.
NOTE: I am able to get this all-core clock speed with the exact same code snippet but built with Go 1.20.8 on the same machine, so I know it isn't a hardware issue like hitting thermal/power limits.
What did you see instead?
All cores / threads were at 100% utilization but only peaked at 3.6GHz.
It is also worth mentioning that I have tried other variations of "load" besides math.Sqrt(), such as just primitive arithmetic expressions, so this would not reflect a regression in the math package, the issue lies elsewhere.
The text was updated successfully, but these errors were encountered: