5#ifndef BITCOIN_NODE_CACHES_H
6#define BITCOIN_NODE_CACHES_H
39 const uint64_t cap{std::max<uint64_t>(
DEFAULT_DB_CACHE, (available_ram / 4) * 3)};
static constexpr uint64_t DEFAULT_KERNEL_CACHE
Suggested default amount of cache reserved for the kernel (bytes)
CacheSizes CalculateCacheSizes(const ArgsManager &args, size_t n_indexes)
void LogOversizedDbCache(const ArgsManager &args) noexcept
constexpr bool ShouldWarnOversizedDbCache(uint64_t dbcache, uint64_t total_ram) noexcept
uint64_t GetDefaultDBCache()
static constexpr uint64_t DEFAULT_DB_CACHE
-dbcache default (bytes)
static constexpr uint64_t DBCACHE_WARNING_RESERVED_RAM
Reserved non-dbcache memory usage.
static constexpr uint64_t MIN_DB_CACHE
min. -dbcache (bytes)
kernel::CacheSizes kernel
uint64_t txospender_index