Skip to content

Commit

Permalink
Reduce memory usage esp under peak load.
Browse files Browse the repository at this point in the history
  • Loading branch information
barrystyle committed Dec 19, 2019
1 parent 2d5ab8b commit 8b3a172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/txdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class CCoinsViewDBCursor;
class uint256;

//! Compensate for extra memory peak (x1.5-x1.9) at flush time.
static constexpr int DB_PEAK_USAGE_FACTOR = 8;
static constexpr int DB_PEAK_USAGE_FACTOR = 2;
//! No need to periodic flush if at least this much space still available.
static constexpr int MAX_BLOCK_COINSDB_USAGE = 10 * DB_PEAK_USAGE_FACTOR;
//! -dbcache default (MiB)
static const int64_t nDefaultDbCache = 500;
static const int64_t nDefaultDbCache = 300;
//! max. -dbcache (MiB)
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024;
//! min. -dbcache (MiB)
Expand Down

0 comments on commit 8b3a172

Please sign in to comment.