Skip to content

Chaintip performance analysis #17272

Closed
Closed

Description

@wmitsuda

no concrete action planned atm, many ideas to be tested, this one is to track what have been attempted.

Activity

  1. self-assigned this
    on Sep 29, 2025
  2. wmitsuda commented on Sep 29, 2025

    @wmitsuda
    ContributorAuthor

    ongoing experiments based on the assumption:

    • reset DB state to latest of static files
    • clean pagecache
    • advance and profile a few blocks
    build/bin/integration stage_exec --datadir $DATADIR --chain mainnet --reset
    sync && sudo purge
    build/bin/integration stage_exec --datadir $DATADIR --chain mainnet --sync.mode.chaintip --block=$STOPBLOCK --$PROFILEFLAGS
    
  3. wmitsuda commented on Sep 29, 2025

    @wmitsuda
    ContributorAuthor

    initial CPU profiling shows decompressor.nextPos() as a hot path, but it looks more like a red herring.

    attempted to do a couple of microoptimizations to it, but nothing significant. I'll look into usage patterns of callers to better understand what can be done.

    Image
  4. wmitsuda commented on Sep 29, 2025

    @wmitsuda
    ContributorAuthor

    note to myself: use -focus "ExecBlockV3" into profiling to isolate the noise even on 1 block profiling.

  5. added this to the 3.4.0 milestone on Oct 2, 2025
  6. VBulikov commented on Oct 2, 2025

    @VBulikov
    Member

    yperbasis added Imp2 as Importance

  7. AskAlexSharov commented on Oct 2, 2025

    @AskAlexSharov
    Collaborator

    about nextPos(): it may be red because it’s actually where “page cache miss” happening. “.data” field usage.

    You can read file twice: and see difference in profiler picture. Can use: “erigon snapshots uncompress file.kv > /dev/null”

  8. modified the milestones: 3.4.0, 3.5.0 on Feb 20, 2026
  9. modified the milestones: 3.5.0, 3.6.0 on May 6, 2026
  10. AskAlexSharov commented on May 12, 2026

    @AskAlexSharov
    Collaborator

    closing because no activity

  11. removed this from the 3.6.0 milestone on May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions