go icon indicating copy to clipboard operation
go copied to clipboard

runtime: findrunnableGCWorker consumed much higher CPU under 64c AWS instance (ARM64), comparing to 32c

Open innerr opened this issue 7 months ago • 21 comments

Go version

go1.19.13 linux/arm64

Output of go env in your module/workspace:

GOARCH="arm64"

What did you do?

  • We put one binary (developed/compiled by golang) in an AWS EKS instance, it runs as a gRpc server.
  • Lately we changed this instance type, increasing CPU cores from 32c to 64c.

What did you see happen?

  • We found that this process had much higher P999 latency comparing to previous.
  • From flame graph, We found out findrunnableGCWorker consumed much higher CPU comparing to previous.

Here are the graphs:

  • ARM64 32c: 20240712-220344
  • ARM64 64c: 20240712-220359

What did you expect to see?

The latency of this server process shouldn't change much when we changed from 32c instance to 64c instance.

innerr avatar Jul 12 '24 14:07 innerr