erigontech / erigontech/erigon

Add docs and warning in logs to disable SWAP

Open
#13,262 0 comments 1 reaction 0 assignees View on GitHub
docs
Dominant language
Go
Stars
3.6k
Forks
1.5k
Avg merge
1d 16h
Merged PRs (30d)
455

Description

When swap memory is enabled the execution speed may decrease from 300Mgas/s to 10Mgas/s which is a significant bottleneck.

Documentation should warn uses to disable swap memory before running Erigon3.

Also, the guide to limit memory usage should be added

Optimal memory usage configuration for ~10GB

```
environment:
- GOGC=50
- GOMEMLIMIT=10GiB
command: |
--batchSize="120M"
```

Note that garbage collector will rip your CPU in order to reduce RAM usage, but it is very optimal if you want your erigon node to use less RAM so that you could run nodes for multiple networks with maximum execution performance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.