Skip to content

Conversation

@michaelsproul
Copy link
Member

@michaelsproul michaelsproul commented Sep 17, 2025

Proposed Changes

Address contention on the store's block_cache by allowing it to be disabled when --block-cache-size 0 is provided, and also making this the default.

Additional Info

It would also be good to add a metric on block_cache.lock(), but I think this would require abstracting/copying some of the CanonicalHeadRwLock stuff and I haven't done that yet.

@michaelsproul michaelsproul added optimization Something to make Lighthouse run more efficiently. database fulu Required for the upcoming Fulu hard fork labels Sep 17, 2025
@michaelsproul michaelsproul added the v8.0.0-rc.0 Q3 2025 release for Fusaka on Holesky label Sep 18, 2025
@jimmygchen jimmygchen added the waiting-on-author The reviewer has suggested changes and awaits thier implementation. label Sep 18, 2025
@michaelsproul michaelsproul added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Sep 18, 2025
@michaelsproul
Copy link
Member Author

Fixed the tests, there was just a small issue with us not deleting from the state cache when the block cache was disabled. The fix is to always delete from the state cache, I don't think this should impose too much overhead 🙏 But re-testing with a backfilling supernode should confirm this.

@michaelsproul michaelsproul added the backwards-incompat Backwards-incompatible API change label Sep 18, 2025
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Tested this earlier and this fixes the slow persist_block_and_blobs and rpc serving behaviour 🎉

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Sep 18, 2025
mergify bot added a commit that referenced this pull request Sep 18, 2025
mergify bot added a commit that referenced this pull request Sep 18, 2025
@mergify mergify bot merged commit 51321da into sigp:unstable Sep 18, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards-incompat Backwards-incompatible API change database fulu Required for the upcoming Fulu hard fork optimization Something to make Lighthouse run more efficiently. ready-for-merge This PR is ready to merge. v8.0.0-rc.0 Q3 2025 release for Fusaka on Holesky

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants