9
3
I have a Raspberry Pi with 925 MB of memory. Bitcoin Core, operating as a full node, uses between 600-900 MB. How can I reduce bitcoind's memory usage?
I tried setting maxmempool to its minimum allowed value, 5. What about maxreceivebuffer and maxsendbuffer? Would setting these to a low value reduce memory usage?
2Short comment before writing a full answer: a 5 MB mempool isn't particularly useful. You might as well disable the mempool entirely with
-blocksonly. – Pieter Wuille – 2017-01-06T00:26:00.077@PieterWuille That's a good suggestion. I didn't know about that option. It probably lowers memory usage, too. In fact, this Reddit post on running a node on a 512 MB Raspberry Pi mentions using that flag, too.
– Geremia – 2017-01-06T00:50:36.867With -blocksonly you don't have any mempool at all. – Pieter Wuille – 2017-01-10T02:10:46.373