From 973f3e928a56586067c7bd5e314a148af74dc5a0 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 21 May 2024 15:10:07 +0200 Subject: [PATCH] kern.max_map_count -> vm.max_map_count; from @phonedph1 (cherry picked from commit 83c50a424b44715efa4c40724dfb1cf2ba4b935b) --- pdns/recursordist/rec-main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 5383528cc0..6f1f21d955 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -922,7 +922,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))); } } -- 2.47.2