Commit 683f052
committed
stagedsync: add aggressive prune timeout for forkchoice finality mode
When --experimental.use-forkchoice-finality is enabled, the node stays
stable at tip and no longer falls back to syncToTip mode, which
previously triggered initialCycle=true with aggressive pruning.
Without this natural pruning mechanism, CommitmentVals history
accumulates at step boundaries (~5.5h on Polygon), growing from 0.7GB
to 6.8GB and causing commit times to degrade from ~3s to 12s+.
Use 60s prune timeout (>=1min triggers PruneSmallBatches adaptive batch
ramp-up, bypassing the SpaceDirty early-exit guard) to drain commitment
history when step boundaries are crossed. This produces a sawtooth
pattern: commits degrade gradually then reset after pruning, with an
overall median of ~5s over 8h of production observation.1 parent a46c7cc commit 683f052
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
| |||
0 commit comments