Bitcoin Core 30.99.0
P2P Digital Currency
Namespaces | Functions | Variables
caches.cpp File Reference
#include <node/caches.h>
#include <common/args.h>
#include <common/system.h>
#include <index/txindex.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::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. More...
 
static constexpr size_t MAX_FILTER_INDEX_CACHE {1024_MiB}
 Max memory allocated to all block filter index caches combined in bytes. More...
 
static constexpr size_t MAX_32BIT_DBCACHE {1024_MiB}
 Maximum dbcache size on 32-bit systems. More...
 

Variable Documentation

◆ MAX_32BIT_DBCACHE

constexpr size_t MAX_32BIT_DBCACHE {1024_MiB}
staticconstexpr

Maximum dbcache size on 32-bit systems.

Definition at line 26 of file caches.cpp.

◆ MAX_FILTER_INDEX_CACHE

constexpr size_t MAX_FILTER_INDEX_CACHE {1024_MiB}
staticconstexpr

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

Definition at line 24 of file caches.cpp.

◆ MAX_TX_INDEX_CACHE

constexpr size_t MAX_TX_INDEX_CACHE {1024_MiB}
staticconstexpr

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

Definition at line 22 of file caches.cpp.