Bitcoin Core 31.99.0
P2P Digital Currency
Classes | Namespaces | Variables
caches.h File Reference
#include <util/byte_units.h>
#include <algorithm>
#include <cstdint>
#include <limits>
Include dependency graph for caches.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kernel::CacheSizes
 

Namespaces

namespace  kernel
 

Variables

constexpr uint64_t MIN_DBCACHE_BYTES {4_MiB}
 Minimum total database cache (bytes) More...
 
constexpr uint64_t MAX_DBCACHE_BYTES {sizeof(void*) == 4 ? 1_GiB : std::numeric_limits<uint64_t>::max()}
 Maximum total database cache on current architecture (bytes) More...
 
constexpr uint64_t DEFAULT_KERNEL_CACHE {450_MiB}
 Suggested default amount of cache reserved for the kernel (bytes) More...
 
constexpr uint64_t DEFAULT_DB_CACHE_BATCH {32_MiB}
 Default LevelDB write batch size. More...
 
constexpr uint64_t MAX_BLOCK_DB_CACHE {2_MiB}
 Max memory allocated to block tree DB specific cache (bytes) More...
 
constexpr uint64_t MAX_COINS_DB_CACHE {8_MiB}
 Max memory allocated to coin DB specific cache (bytes) More...
 

Variable Documentation

◆ DEFAULT_DB_CACHE_BATCH

constexpr uint64_t DEFAULT_DB_CACHE_BATCH {32_MiB}
inlineconstexpr

Default LevelDB write batch size.

Definition at line 21 of file caches.h.

◆ DEFAULT_KERNEL_CACHE

constexpr uint64_t DEFAULT_KERNEL_CACHE {450_MiB}
inlineconstexpr

Suggested default amount of cache reserved for the kernel (bytes)

Definition at line 19 of file caches.h.

◆ MAX_BLOCK_DB_CACHE

constexpr uint64_t MAX_BLOCK_DB_CACHE {2_MiB}
inlineconstexpr

Max memory allocated to block tree DB specific cache (bytes)

Definition at line 24 of file caches.h.

◆ MAX_COINS_DB_CACHE

constexpr uint64_t MAX_COINS_DB_CACHE {8_MiB}
inlineconstexpr

Max memory allocated to coin DB specific cache (bytes)

Definition at line 26 of file caches.h.

◆ MAX_DBCACHE_BYTES

constexpr uint64_t MAX_DBCACHE_BYTES {sizeof(void*) == 4 ? 1_GiB : std::numeric_limits<uint64_t>::max()}
inlineconstexpr

Maximum total database cache on current architecture (bytes)

Definition at line 17 of file caches.h.

◆ MIN_DBCACHE_BYTES

constexpr uint64_t MIN_DBCACHE_BYTES {4_MiB}
inlineconstexpr

Minimum total database cache (bytes)

Definition at line 15 of file caches.h.