Repository navigation
Conversation
… a GC that would land within two slots
…er, never after a cycle, and after the overlay teardown
AskAlexSharov
left a comment
Collaborator
There was a problem hiding this comment.
execution/execmodule/idle_after_commit.goL32: bugs the goroutine readssmaps_rollupbefore it decides on the GC. About once per 30 min that read takes ~1 s (as measured in #26690), so the forced GC starts ~1 s after the commit and can overlap the next newPayload, the overlap this PR wants to avoid. Calle.gcIfDue()first, thenmem.RefreshVirtualMemStats(...).execution/execmodule/idle_after_commit.goL58: idiomrunway/64*45is a private copy of the runtime pacer'sminTriggerRatioNum/triggerRatioDen(mgcpacer.go), and only the test's variable name says so. Use named constants (pacerMinTriggerNum, pacerTriggerDen = 45, 64) with a one-line comment that they mirror the runtime's earliest pacer trigger.execution/execmodule/forkchoice.goL956: speed a forced GC at half the runway can nearly double GC cycles (a natural GC triggers between 0.7 and 0.95 of the runway), and on proposer slots its mark overlaps block building, which starts right after the FCU reply. Before ready, the A/B should show newPayload p50/p99, GC cycles per hour, GC CPU share and getPayload time.
…pacer trigger constants as the runtime does
awskii
marked this pull request as ready for review
November 23, 2026 07:04
awskii
marked this pull request as draft
November 23, 2026 07:26
Member
Author
|
Closing: a live A/B on a mainnet tip node shows no gain.
Measured head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
unique.Makemiss in "GC weak to strong wait". Go keeps that block acrossgcMarkDonerestarts.runtime.GC()once half the runway is used, before the earliest pacer trigger (45/64).unique.Makemax