5#ifndef BITCOIN_NODE_CACHES_H
6#define BITCOIN_NODE_CACHES_H
32 const size_t cap{(total_ram < 2048_MiB) ?
DEFAULT_DB_CACHE : (total_ram / 100) * 75};
static constexpr size_t DEFAULT_KERNEL_CACHE
Suggested default amount of cache reserved for the kernel (bytes)
constexpr bool ShouldWarnOversizedDbCache(size_t dbcache, size_t total_ram) noexcept
CacheSizes CalculateCacheSizes(const ArgsManager &args, size_t n_indexes)
void LogOversizedDbCache(const ArgsManager &args) noexcept
static constexpr size_t MIN_DB_CACHE
min. -dbcache (bytes)
static constexpr size_t DEFAULT_DB_CACHE
-dbcache default (bytes)
kernel::CacheSizes kernel