NethermindEth / nethermind

A robust execution client for Ethereum node operators.
https://nethermind.io/nethermind-client
GNU General Public License v3.0
1.2k stars 411 forks source link

Use Jemalloc for significant memory reduction #6107

Open asdacap opened 10 months ago

asdacap commented 10 months ago
Configuration Overhead (GB)
Default 13.5
Call malloc_trim every 5 minute 7.5
MALLOC_ARENA_MAX=32 4.5
MALLOC_MMAP_THRESHOLD=64000 5.5
Jemalloc via LD_PRELOAD 1.5
asdacap commented 5 months ago

There seems to be an attempt at rocksdb binding library to bundle jemalloc https://github.com/curiosity-ai/rocksdb-sharp/commit/dee0d243c7aa3b219cfc0282a979756a7de5cf73

benaadams commented 3 months ago

The allocator contention is very bad during Old Receipts on Windows (enough to push block processing over 24secs)