reth icon indicating copy to clipboard operation
reth copied to clipboard

Dynamic cross-block cache size

Open shekhirin opened this issue 7 months ago • 2 comments
trafficstars

Problem

Currently we're allocating 4GB to inter-block caches, but on beefier machines with >32GB this is nothing, and we can allocate much more to increase the hit rate https://github.com/paradigmxyz/reth/blob/eb8102c7c27fa998acf291568ad62a91f007b3d9/crates/engine/primitives/src/config.rs#L20

Solution

Allocate 30% of available RAM to cross-block caches.

shekhirin avatar Apr 18 '25 12:04 shekhirin