From: Otto Moerbeek Date: Tue, 21 May 2024 13:10:07 +0000 (+0200) Subject: kern.max_map_count -> vm.max_map_count; from @phonedph1 X-Git-Tag: rec-5.1.0-beta1~31^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83c50a424b44715efa4c40724dfb1cf2ba4b935b;p=thirdparty%2Fpdns.git kern.max_map_count -> vm.max_map_count; from @phonedph1 --- diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index e553317bd7..8a5c015d3b 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -949,7 +949,7 @@ static void checkOrFixLinuxMapCountLimits([[maybe_unused]] Logr::log_t log) g_maxMThreads = static_cast(lim / (4ULL * workers)); SLOG(g_log << Logger::Error << "sysctl vm.max_map_count= <" << mapsNeeded << ", this may cause 'bad_alloc' exceptions; adjusting max-mthreads to " << g_maxMThreads << endl, log->info(Logr::Error, "sysctl vm.max_map_count < mapsNeeded, this may cause 'bad_alloc' exceptions, adjusting max-mthreads", - "kern.max_map_count", Logging::Loggable(lim), "mapsNeeded", Logging::Loggable(mapsNeeded), + "vm.max_map_count", Logging::Loggable(lim), "mapsNeeded", Logging::Loggable(mapsNeeded), "max-mthreads", Logging::Loggable(g_maxMThreads))); } }