reth
reth copied to clipboard
Dynamic cross-block cache size
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.