Skip to content
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

runtime: GC pacing exhibits strange behavior with a low GOGC [1.14 backport] #37928

gopherbot opened this issue Mar 18, 2020 · 3 comments
CherryPickApproved FrozenDueToAge


Copy link

@gopherbot gopherbot commented Mar 18, 2020

@ianlancetaylor requested issue #37927 to be considered for backport to the next 1.14 minor release.

@gopherbot Please open a backport to 1.14. The comment above suggests that we should do this to fix GOGC in 1.14.

@gopherbot gopherbot added the CherryPickCandidate label Mar 18, 2020
@gopherbot gopherbot added this to the Go1.14.1 milestone Mar 18, 2020
@cagedmantis cagedmantis removed this from the Go1.14.1 milestone Mar 19, 2020
@cagedmantis cagedmantis added this to the Go1.14.2 milestone Mar 19, 2020
Copy link

@cagedmantis cagedmantis commented Mar 20, 2020

Approved. It's a serious issue without a known workaround.

@cagedmantis cagedmantis added CherryPickApproved and removed CherryPickCandidate labels Mar 20, 2020
Copy link

@gopherbot gopherbot commented Mar 26, 2020

Change mentions this issue: [release-branch.go1.14] runtime: ensure minTriggerRatio never exceeds maxTriggerRatio

@mknyszek mknyszek self-assigned this Mar 26, 2020
Copy link

@gopherbot gopherbot commented Mar 27, 2020

Closed by merging 9d7dad1 to release-branch.go1.14.

gopherbot pushed a commit that referenced this issue Mar 27, 2020
… maxTriggerRatio

Currently, the capping logic for the GC trigger ratio is such that if
gcpercent is low, we may end up setting the trigger ratio far too high,
breaking the promise of SetGCPercent and GOGC has a trade-off knob (we
won't start a GC early enough, and we will use more memory).

This change modifies the capping logic for the trigger ratio by scaling
the minTriggerRatio with gcpercent the same way we scale

For #37927.
Fixes #37928.

Change-Id: I2a048c1808fb67186333d3d5a6bee328be2f35da
Run-TryBot: Michael Knyszek <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Austin Clements <>
(cherry picked from commit d1ecfcc)
Reviewed-by: David Chase <>
@golang golang locked and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
CherryPickApproved FrozenDueToAge
None yet

No branches or pull requests

3 participants