-
Notifications
You must be signed in to change notification settings - Fork 21.9k
cmd,core,tests: introduce new BAL execution flags, log BAL slow blocks, surface prefetch reader time as a metric #34892
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
Merged
jwasinger
merged 42 commits into
ethereum:bal-devnet-3
from
jwasinger:bal-prefetch-workers
May 6, 2026
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
f089266
core/state: forward cache stats from prefetchStateReader
CPerezz 3dc4dca
core/state: add code-write counter fields to BALStateTransition
CPerezz 78cb5b9
core/state: increment write counters in BAL state transition
CPerezz d419d91
core/state: surface BAL write counters via WriteCounts
CPerezz 6730ab3
core: aggregate per-tx state-read durations through parallel pipeline
CPerezz bcdc309
core/state: instrument BAL state-transition read times
CPerezz cd93a42
core/state: instrument prefetcher read times
CPerezz d611185
core: sum prefetcher + per-tx + BAL state-transition reads into state…
CPerezz ae69e96
core: extend slow-block JSON shape test with state_writes, cache, sta…
CPerezz 812fa19
core/state, core: introduce state.StateCounts snapshot type
CPerezz 6b1ea9a
core/state: forward prefetcher read times through the reader aggregator
CPerezz 6951ad7
core: nil-guard balTransitionStats in reportBALMetrics
CPerezz cdfad0d
core/state: comment len(code) > 0 gate, drop dead OriginStorageLoadTime
CPerezz 1afcea9
core/state: change StateCounts.Add to value receiver
CPerezz 16e98f5
core: refresh BAL Metrics() snapshot after writeBlockWithState
CPerezz cd8ce62
core: wait for prefetcher before reading PrefetchReadTimes
CPerezz eb4d175
core/state: change BAL plain-int counter fields from int64 to int
CPerezz 546d2b4
core: split BAL read-time access from cached metrics struct
CPerezz 1373339
core: extract state.ReadDurations triple
CPerezz 8797d1a
core: tighten metric doc comments
CPerezz 63660b2
core: lock down state.ReadDurations.Add merge primitive
CPerezz 7cd28d3
core: remove blockchain_stats_test.go
CPerezz 4d9405a
core: comment slowBlockBAL population fields
CPerezz 823b582
core: derive BAL block account/storage read counts from access list
CPerezz 3d135ba
core: clarify ProcessResultWithMetrics.Counts/Reads semantics
CPerezz aa13b20
core: deduplicate CodeLoaded/CodeLoadBytes for BAL blocks
CPerezz 563cf08
core: move slowBlockBAL field docs onto the struct
CPerezz adb545b
core/state: colocate StateCounts/ReadDurations with StateDB
CPerezz 3cdb836
core: drop redundant WaitPrefetch in BAL block stats path
CPerezz 51fdf0e
core: drop and tighten comments per PR feedback
CPerezz f5d50d0
fix for code mutation
jwasinger b01202e
the start of some changes I was experimenting with. broken
jwasinger 9017515
more changes (wip)
jwasinger 052a24c
it builds
jwasinger 5c101bb
try fix
jwasinger 10314a1
add --bal.prefetchworkers flag to parameterize state loading concurre…
jwasinger 4574911
fix
jwasinger ac8354d
add --bal.blockingprefetch: if enabled, will ensure that when executi…
jwasinger aa87455
core/state: note that error case is unreachable
jwasinger b7118dc
cleanup
jwasinger da9e517
set prefetcher metrics upon completion
jwasinger 2685212
cleanup
jwasinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can definitely clean this up and add a dedicated
logBadBlockWithBALmethod. but I'm going to leave that for the future because the target branch is essentially a staging branch.