Skip to content

perf(l1): stride depth-gated trie commits every 32 layers - #7214

Open
NikhilSharmaWe wants to merge 3 commits into
lambdaclass:mainfrom
NikhilSharmaWe:perf/l1-depth-gated-commit-stride
Open

perf(l1): stride depth-gated trie commits every 32 layers#7214
NikhilSharmaWe wants to merge 3 commits into
lambdaclass:mainfrom
NikhilSharmaWe:perf/l1-depth-gated-commit-stride

Conversation

@NikhilSharmaWe

Copy link
Copy Markdown

Summary

  • Once commit_depth >= DB_COMMIT_THRESHOLD (no reorg overlay), depth-gated commits wait until depth + DEPTH_GATED_COMMIT_STRIDE - 1 parent-chain layers exist, then commit at depth — amortizing rebuild_bloom, FKV Stop/Continue, and the trie write batch (~32× fewer commits on the warm retain-window path).
  • Live path (commit_depth: None), batch depth (< 128), and overlay installs stay stride 1; journaling and per-block flush_block_data are unchanged.
  • Peak resident layers rise slightly to ~depth + 32; the retain window after each flush remains ~depth.

Part of #7100 (item 2).

Test plan

  • cargo test -p ethrex-storage depth_gated
  • cargo test -p ethrex-storage get_commitable_by_depth_if_at_least
  • cargo test -p ethrex-test --features rocksdb bounded_reexec_without_fcu_bounds_memory_and_serves_window

@NikhilSharmaWe
NikhilSharmaWe requested a review from a team as a code owner August 25, 2026 04:26
@github-actions github-actions Bot added the external-contributor PR opened by a contributor outside the team label Aug 25, 2026
NikhilSharmaWe added a commit to NikhilSharmaWe/ethrex that referenced this pull request Aug 25, 2026
…lass#7214)

Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
…lass#7214)

Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
@NikhilSharmaWe
NikhilSharmaWe force-pushed the perf/l1-depth-gated-commit-stride branch from dd88b47 to 687ec93 Compare August 25, 2026 09:02
@NikhilSharmaWe

Copy link
Copy Markdown
Author

cc @edg-l

# Conflicts:
#	crates/storage/lib.rs
#	crates/storage/store.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor PR opened by a contributor outside the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants