8000 Prune state cache based on size · Issue #7450 · sigp/lighthouse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Prune state cache based on size #7450

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

Open
michaelsproul opened this issue May 13, 2025 · 1 comment
Open

Prune state cache based on size #7450

michaelsproul opened this issue May 13, 2025 · 1 comment
Labels
database optimization Something to make Lighthouse run more efficiently. tree-states Ongoing state and database overhaul

Comments

@michaelsproul
Copy link
Member

Once we can measure the size of the state cache in memory (see issue linked below) we can add some heuristics to prune the state cache to fit within a certain memory bound, e.g. 4 GB.

These heuristics might be quite subtle to get right, as the differential size of items in the cache depends on the order in which they're added. We might want to combine the existing heuristics that target certain kinds of states (e.g. old epoch boundary states) with the size heuristics, or just keep greedily pruning states one-at-a-time until we're below the bound (although this could result in very few states in the cache in the worst case).

Depends on:

@michaelsproul michaelsproul added optimization Something to make Lighthouse run more efficiently. database tree-states Ongoing state and database overhaul labels May 13, 2025
@michaelsproul
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database optimization Something to make Lighthouse run more efficiently. tree-states Ongoing state and database overhaul
Projects
None yet
Development

No branches or pull requests

1 participant
0