Skip to content

runtime: greenteagc makes our program slower than old GC on darwin/arm64 #77824

@atetubou

Description

@atetubou

Go version

go version go1.26.0 darwin/arm64

Output of go env in your module/workspace:

AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/tikuta/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/tikuta/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/6j/px1zc0lj76j9lwrtfbtlr01h00bk9x/T/go-build3797828191=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/Users/tikuta/ghq/chromium.googlesource.com/build/siso/go.mod'
GOMODCACHE='/Users/tikuta/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/tikuta/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/tikuta/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.26.0'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

We are developing distributed build system called siso for chromium build in https://source.chromium.org/chromium/build/+/main:siso/

And when we update from go1.25 to go1.26 for siso, we noticed that chromium build performance become slower when using siso with greenteagc.

  • go1.26 w/ greenteagc: 7m:31s
  • go1.26 w/o greenteagc: 6m:54s

Unfortunately, we don't have minimal reproducible case. So I attached cpu/memory profile w/ and w/o greenteagc of our build hoping that helps to investigate how greenteagc slows down the build.

siso_greenteagc_profs.tgz

What did you see happen?

Enabling greenteagc is faster than disabling greenteagc.

What did you expect to see?

Enabling greenteagc is slower than disabling greenteagc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Performancecompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions