From 334d591377896421e356dfbfb57c8f9022970cf3 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 17 Jan 2018 16:55:26 -0800 Subject: [PATCH] Add documentation about dbcache. Adapted from documentation 'Reducing bitcoind memory usage' by @laanwj https://gist.github.com/laanwj/efe29c7661ce9b6620a7 --- doc/reducing-memory-usage.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/reducing-memory-usage.md diff --git a/doc/reducing-memory-usage.md b/doc/reducing-memory-usage.md new file mode 100644 index 000000000..333ea0086 --- /dev/null +++ b/doc/reducing-memory-usage.md @@ -0,0 +1,8 @@ +In-memory caches +---------------- + +The size of some in-memory caches can be reduced. As caches trade off memory usage for performance, usually reducing these have a negative effect on performance. + +- `-dbcache=` - the UTXO database cache size, this defaults to `450` (`100` before 1.0.15). The unit is MiB (where 1 GiB = 1024 MiB). + - The minimum value for `-dbcache` is 4. + - A lower dbcache make initial sync time much longer. After the initial sync, the effect is less pronounced for most use-cases, unless fast validation of blocks is important such as for mining.