Skip to content

Post tree-states PM #7748

@dapplion

Description

@dapplion

After merging the main tree states changes

Lighthouse has massively reduced its disk footprint on both unfinalized and finalized data while keeping a similar performance profile and reducing I/O significantly.

There a few next steps we can do tho

Overall goals

  • Make happy path faster when block processing needs to advance
    • Almost never happens in mainnet
  • LH not OOM during non-finality: review state caches

Caches

State cache issues / goals

  • Needs to adapt the max count of states to not OOM
  • Needs to be smarted about what to store
    • Reduce the impact of a missed state, most of the time is spent rebuilding caches

Extras

Concerns

  • Block processing takes 10 seconds on Holesky.
    • Database write takes 10 seconds
    • Epoch processing takes 5 seconds sometimes
    • The state advance timer sometimes is not useful

When processing a block that requires a skip, we need to advance the state a bunch of slots. For each epoch boundary we have to compute the diff, store it, and maybe run an epoch transition.

  • Computing the diff for the block itself is not

Metadata

Metadata

Assignees

No one assigned

    Labels

    tree-statesOngoing state and database overhaul

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions