ObolNetwork / charon-distributed-validator-node

Run one node as part of Distributed Validator Cluster using docker-compose
https://docs.obol.tech/
75 stars 223 forks source link

nethermind occupies too much virtual memory #259

Open CodeGp2018 opened 6 months ago

CodeGp2018 commented 6 months ago

🎯 Problem to be solved

nethermind occupies too much virtual memory, it needs optimization.

🧪 Tests

Hardware description: VPS: 6G16G image

👐 Additional acceptance criteria

idkravitz commented 6 months ago

It has nothing to do with distributed validator node configuration, instead it has to do with how nethermind accesses ledger and state, it relies on mmap, which maps files to virtual memory, thus creating a virtual memory bloat, which itself isn't a disaster, since it's loaded and unloaded on demand.

If you feel that nethermind doesn't fit your needs you can switch to other EL nodes, like geth, You can find a geth setup example in examples/ directory of the repo.