node::ShouldWarnOversizedDbCache

Report whether the configured database cache is large enough to warrant a warning.

Synopsis

Declared in <node/caches.h>

constexpr
bool
ShouldWarnOversizedDbCache(
    uint64_t dbcache,
    uint64_t total_ram) noexcept;

Return Value

True if dbcache exceeds the safe fraction of available RAM.

Parameters

NameDescription
dbcacheThe configured database cache size in bytes.
total_ramThe total system RAM in bytes.