mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
chore(prune): increase reth prune DELETE_LIMIT to 20M (#21762)
This commit is contained in:
@@ -80,7 +80,9 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> PruneComma
|
||||
});
|
||||
|
||||
// Use batched pruning with a limit to bound memory, running in a loop until complete.
|
||||
const DELETE_LIMIT: usize = 200_000;
|
||||
//
|
||||
// A limit of 20_000_000 results in a max memory usage of ~5G.
|
||||
const DELETE_LIMIT: usize = 20_000_000;
|
||||
let mut pruner = PrunerBuilder::new(config)
|
||||
.delete_limit(DELETE_LIMIT)
|
||||
.build_with_provider_factory(provider_factory);
|
||||
|
||||
Reference in New Issue
Block a user