Skip to content

Commit 7afc4c4

Browse files
committed
scale the cache change down a bit
1 parent db7e0b5 commit 7afc4c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/txdb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct CDiskTxPos;
2626
//! No need to periodic flush if at least this much space still available.
2727
static constexpr int MAX_BLOCK_COINSDB_USAGE = 10;
2828
//! -dbcache default (MiB)
29-
static const int64_t nDefaultDbCache = 640;
29+
static const int64_t nDefaultDbCache = 560;
3030
//! -dbbatchsize default (bytes)
3131
static const int64_t nDefaultDbBatchSize = 16 << 20;
3232
//! max. -dbcache (MiB)
@@ -40,7 +40,7 @@ static const int64_t nMaxBlockDBCache = 16;
4040
// a meaningful difference: https://github.com/bitcoin/bitcoin/pull/8273#issuecomment-229601991
4141
static const int64_t nMaxTxIndexCache = 1024;
4242
//! Max memory allocated to coin DB specific cache (MiB)
43-
static const int64_t nMaxCoinsDBCache = 128;
43+
static const int64_t nMaxCoinsDBCache = 32;
4444

4545
/** CCoinsView backed by the coin database (chainstate/) */
4646
class CCoinsViewDB final : public CCoinsView

0 commit comments

Comments
 (0)