Skip to content

[r3.4] db/state, cmd/integration: 4x larger commitment rebuild shard, squeeze flag transparent#21147

Merged
AskAlexSharov merged 3 commits into
release/3.4from
awskii/r34-inc-shard-def-size-v2
May 13, 2026
Merged

[r3.4] db/state, cmd/integration: 4x larger commitment rebuild shard, squeeze flag transparent#21147
AskAlexSharov merged 3 commits into
release/3.4from
awskii/r34-inc-shard-def-size-v2

Conversation

@awskii

@awskii awskii commented May 12, 2026

Copy link
Copy Markdown
Member

Summary

Two tuning/transparency changes for commitment rebuild on release/3.4. Subset of awskii/r34-inc-shard-def-size — the minStepsForReferencing and AggregatorSqueezeCommitmentValues constant changes from that branch are intentionally excluded here.

  • db/state/squeeze.go: raise shardStepsSize cap from 16 → 64 steps during RebuildCommitmentFiles. Larger shards cut per-shard overhead on long rebuilds.
  • db/state/squeeze.go: stop forcing ReplaceKeysInValues=true inside the rebuild's squeeze path. The post-rebuild squeeze now actually honours the caller's squeeze flag — if !squeeze { return } (was if !squeeze && !statecfg.Schema.CommitmentDomain.ReplaceKeysInValues), and ForTestReplaceKeysInValues(..., squeeze) (was hardcoded true).
  • cmd/integration/commands/flags.go: flip the --squeeze flag default from truefalse so the integration commitment_rebuild command no longer squeezes by default.

Net effect: rebuild is faster (bigger shards) and squeeze is opt-in via flag, not silently forced.

awskii added 3 commits May 12, 2026 18:07
(cherry picked from commit 9ba41ee)
(cherry picked from commit 831742f)
@AskAlexSharov AskAlexSharov merged commit 4608a64 into release/3.4 May 13, 2026
23 checks passed
@AskAlexSharov AskAlexSharov deleted the awskii/r34-inc-shard-def-size-v2 branch May 13, 2026 03:02
pull Bot pushed a commit to Dustin4444/erigon that referenced this pull request May 29, 2026
Cherry-pick of 5 performance improvements from the `performance` branch
to `main`:

1. warmuper: cancelable worker — erigontech#20941
2. db/state, cmd/integration: 4x larger commitment rebuild shard,
squeeze flag transparent — erigontech#21147
3. db/rawdb: increase ChangeSets3 prune loop stride 100→1000, move log
inside stride check — erigontech#21204
4. db/seg: increase bufio pool size from 256KB to 512KB
5. db/kv/prune: remove dead `limit` parameter from `TableScanningPrune`
(accepted but never forwarded internally)

---------

Co-authored-by: awskii <awskii@users.noreply.github.com>
Co-authored-by: moskud <sudeepdino008@gmail.com>
Co-authored-by: info@weblogix.biz <admin@10gbps.weblogix.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants