MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / LogOversizedDbCache

Function LogOversizedDbCache

src/node/caches.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void LogOversizedDbCache(const ArgsManager& args) noexcept
86{
87 if (const auto total_ram{GetTotalRAM()}) {
88 const size_t db_cache{CalculateDbCacheBytes(args)};
89 if (ShouldWarnOversizedDbCache(db_cache, *total_ram)) {
90 InitWarning(bilingual_str{tfm::format(_("A %zu MiB dbcache may be too large for a system memory of only %zu MiB."),
91 db_cache >> 20, *total_ram >> 20)});
92 }
93 }
94}
95} // namespace node

Callers 1

AppInitMainFunction · 0.85

Calls 6

GetTotalRAMFunction · 0.85
CalculateDbCacheBytesFunction · 0.85
InitWarningFunction · 0.85
_Function · 0.85
formatFunction · 0.50

Tested by

no test coverage detected