5#ifndef BITCOIN_KERNEL_CACHES_H
6#define BITCOIN_KERNEL_CACHES_H
17inline constexpr uint64_t
MAX_DBCACHE_BYTES{
sizeof(
void*) == 4 ? 1_GiB : std::numeric_limits<uint64_t>::max()};
constexpr uint64_t MAX_BLOCK_DB_CACHE
Max memory allocated to block tree DB specific cache (bytes)
constexpr uint64_t MAX_DBCACHE_BYTES
Maximum total database cache on current architecture (bytes)
constexpr uint64_t DEFAULT_DB_CACHE_BATCH
Default LevelDB write batch size.
constexpr uint64_t DEFAULT_KERNEL_CACHE
Suggested default amount of cache reserved for the kernel (bytes)
constexpr uint64_t MAX_COINS_DB_CACHE
Max memory allocated to coin DB specific cache (bytes)
constexpr uint64_t MIN_DBCACHE_BYTES
Minimum total database cache (bytes)
CacheSizes(uint64_t total_cache)