| 83 | } |
| 84 | |
| 85 | void 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 |
no test coverage detected