Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
caches.cpp File Reference
#include <node/caches.h>
#include <common/args.h>
#include <common/system.h>
#include <index/txindex.h>
#include <index/txospenderindex.h>
#include <kernel/caches.h>
#include <logging.h>
#include <node/interface_ui.h>
#include <tinyformat.h>
#include <util/byte_units.h>
#include <algorithm>
#include <string>
Include dependency graph for caches.cpp:

Go to the source code of this file.

Namespaces

namespace  node

Functions

size_t node::GetDefaultDBCache ()
size_t node::CalculateDbCacheBytes (const ArgsManager &args)
CacheSizes node::CalculateCacheSizes (const ArgsManager &args, size_t n_indexes)
void node::LogOversizedDbCache (const ArgsManager &args) noexcept

Variables

static constexpr size_t MAX_TX_INDEX_CACHE {1024_MiB}
 Max memory allocated to tx index DB specific cache in bytes.
static constexpr size_t MAX_FILTER_INDEX_CACHE {1024_MiB}
 Max memory allocated to all block filter index caches combined in bytes.
static constexpr size_t MAX_TXOSPENDER_INDEX_CACHE {1024_MiB}
 Max memory allocated to tx spenderindex DB specific cache in bytes.
static constexpr size_t MAX_32BIT_DBCACHE {1024_MiB}
 Maximum dbcache size on 32-bit systems.
static constexpr size_t HIGH_DEFAULT_DBCACHE {1024_MiB}
 Larger default dbcache on 64-bit systems with enough RAM.
static constexpr uint64_t HIGH_DEFAULT_DBCACHE_MIN_TOTAL_RAM {4096ULL << 20}
 Minimum detected RAM required for HIGH_DEFAULT_DBCACHE.

Variable Documentation

◆ HIGH_DEFAULT_DBCACHE

size_t HIGH_DEFAULT_DBCACHE {1024_MiB}
staticconstexpr

Larger default dbcache on 64-bit systems with enough RAM.

Definition at line 31 of file caches.cpp.

◆ HIGH_DEFAULT_DBCACHE_MIN_TOTAL_RAM

uint64_t HIGH_DEFAULT_DBCACHE_MIN_TOTAL_RAM {4096ULL << 20}
staticconstexpr

Minimum detected RAM required for HIGH_DEFAULT_DBCACHE.

Definition at line 33 of file caches.cpp.

◆ MAX_32BIT_DBCACHE

size_t MAX_32BIT_DBCACHE {1024_MiB}
staticconstexpr

Maximum dbcache size on 32-bit systems.

Definition at line 29 of file caches.cpp.

◆ MAX_FILTER_INDEX_CACHE

size_t MAX_FILTER_INDEX_CACHE {1024_MiB}
staticconstexpr

Max memory allocated to all block filter index caches combined in bytes.

Definition at line 25 of file caches.cpp.

◆ MAX_TX_INDEX_CACHE

size_t MAX_TX_INDEX_CACHE {1024_MiB}
staticconstexpr

Max memory allocated to tx index DB specific cache in bytes.

Definition at line 23 of file caches.cpp.

◆ MAX_TXOSPENDER_INDEX_CACHE

size_t MAX_TXOSPENDER_INDEX_CACHE {1024_MiB}
staticconstexpr

Max memory allocated to tx spenderindex DB specific cache in bytes.

Definition at line 27 of file caches.cpp.