Changeset View
Changeset View
Standalone View
Standalone View
doc/reduce-memory.md
Show All 18 Lines | |||||
- To completely disable mempool functionality there is the option `-blocksonly`. This will make the client opt out of receiving (and thus relaying) transactions completely, except as part of blocks. | - To completely disable mempool functionality there is the option `-blocksonly`. This will make the client opt out of receiving (and thus relaying) transactions completely, except as part of blocks. | ||||
- Do not use this when using the client to broadcast transactions as any transaction sent will stick out like a sore thumb, affecting privacy. When used with the wallet it should be combined with `-walletbroadcast=0` and `-spendzeroconfchange=0`. Another mechanism for broadcasting outgoing transactions (if any) should be used. | - Do not use this when using the client to broadcast transactions as any transaction sent will stick out like a sore thumb, affecting privacy. When used with the wallet it should be combined with `-walletbroadcast=0` and `-spendzeroconfchange=0`. Another mechanism for broadcasting outgoing transactions (if any) should be used. | ||||
- Unused memory allocated to the mempool (default: 300MB) is shared with the UTXO cache, so when trying to reduce memory usage you should limit the mempool, with the `-maxmempool` command line argument. | - Unused memory allocated to the mempool (default: 300MB) is shared with the UTXO cache, so when trying to reduce memory usage you should limit the mempool, with the `-maxmempool` command line argument. | ||||
## Number of peers | ## Number of peers | ||||
- `-maxconnections=<n>` - the maximum number of connections, this defaults to `125`. Each active connection takes up some memory. Only significant if incoming | - `-maxconnections=<n>` - the maximum number of connections, this defaults to 4096. Each active connection takes up some | ||||
connections are enabled, otherwise the number of connections will never be more than `8`. | memory. This option applies only if incoming connections are enabled, otherwise the number of connections will never | ||||
be more than 10. Of the 10 outbound peers, there can be 8 full-relay connections and 2 block-relay-only ones. | |||||
## Thread configuration | ## Thread configuration | ||||
For each thread a thread stack needs to be allocated. By default on Linux, | For each thread a thread stack needs to be allocated. By default on Linux, | ||||
threads take up 8MiB for the thread stack on a 64-bit system, and 4MiB in a | threads take up 8MiB for the thread stack on a 64-bit system, and 4MiB in a | ||||
32-bit system. | 32-bit system. | ||||
- `-par=<n>` - the number of script verification threads, defaults to the number of cores in the system minus one. | - `-par=<n>` - the number of script verification threads, defaults to the number of cores in the system minus one. | ||||
Show All 13 Lines |