Skip to content

warmuper: blocking and more (#20819)#20877

Merged
awskii merged 1 commit into
mainfrom
cherry-pick-20819-to-main
Apr 28, 2026
Merged

warmuper: blocking and more (#20819)#20877
awskii merged 1 commit into
mainfrom
cherry-pick-20819-to-main

Conversation

@yperbasis

Copy link
Copy Markdown
Member

Cherry-pick of #20819 to main.

Conflicts resolved

execution/commitment/commitmentdb/commitment_context.go: main has additional ConcurrentPatriciaHashed branching and a different warmup-config init layout. Kept main's structure; applied the two PR changes in-place — added the keys/s logging block and switched NumWorkers from 16 to dbg.TipTrieWarmupers. Added encoding/hex import for the new log line.

in near past i did change warmupers logic to `non-blocking`. but seems
it was mistake for non-chain-tip case.
On bloatnet non-tip: i see 5x improvements in commitment speed - if make
warmuper's channel `blocking`.
Reason: there is so much cold keys that 20% of them go dropped. And it
slow-down overall system throughput.

Also increasing amount of warmupers more than `runtime.NumCPU()` helps
+2x because it's oke to have `io-threads > cpu_amount`

Current bloatnet speed (100 blocks batches): `gas/s=289.38M`, trie calc
`keys/s=14.24k`

```
[INFO] [04-26|11:34:37.582] [4/6 Execution][agg] computing trie      progress=2.27M/2.40M keys/s=14.24k akeys=349 skeys=2.27M rdb=4.37M rda=349 rds=3.11M wrb=5.25M cb=8.72M ca=209 cs=832.77k mb=18.57k ma=140 ms=2.28M fld=0 pdur=0s fdur=0s ufdur=0s alloc=21.7GB sys=30.2GB
[INFO] [04-26|11:34:46.903] [4/6 Execution] serial done              in=3m4.129222864s buf=5.6GB/2.9GB blk=24506399 blks=100 blk/s=0.54 txs=6.80k tx/s=36 gas/s=289.38M stepsInDB=0.72 step=7496.7 alloc=22.2GB sys=30.2GB isForkValidation=false isApplyingBlocks=true
```
@awskii awskii added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit bfc30af Apr 28, 2026
38 checks passed
@awskii awskii deleted the cherry-pick-20819-to-main branch April 28, 2026 14:39
yperbasis added a commit that referenced this pull request Apr 28, 2026
lupin012 pushed a commit that referenced this pull request May 2, 2026
Cherry-pick of #20819 to main.

## Conflicts resolved

`execution/commitment/commitmentdb/commitment_context.go`: main has
additional `ConcurrentPatriciaHashed` branching and a different
warmup-config init layout. Kept main's structure; applied the two PR
changes in-place — added the keys/s logging block and switched
`NumWorkers` from `16` to `dbg.TipTrieWarmupers`. Added `encoding/hex`
import for the new log line.

Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants