mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 00:42:45 +00:00
doc: explain swapping in reduce-memory.md
Document what swapping is and why it can severely degrade `bitcoind` performance.
This commit is contained in:
parent
9cad97f6cd
commit
a61907e5d9
@ -2,6 +2,15 @@
|
||||
|
||||
There are a few parameters that can be dialed down to reduce the memory usage of `bitcoind`. This can be useful on embedded systems or small VPSes.
|
||||
|
||||
## Swapping
|
||||
|
||||
When the operating system is under memory pressure, it may swap memory pages from RAM to disk.
|
||||
If this becomes continuous ("thrashing"), `bitcoind` can slow to a crawl, especially during initial sync or reindex.
|
||||
|
||||
If you see sustained swap I/O while `bitcoind` runs, restart with a lower `-dbcache`.
|
||||
If needed, also reduce `-maxmempool`, `-maxconnections`, or use `-blocksonly`.
|
||||
Bitcoin Core may warn at startup when `-dbcache` looks too large for the detected system memory.
|
||||
|
||||
## In-memory caches
|
||||
|
||||
The size of some in-memory caches can be reduced. As caches trade off memory usage for performance, reducing these will usually have a negative effect on performance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user