From 83c50a424b44715efa4c40724dfb1cf2ba4b935b 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 --- 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 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))); } } -- 2.47.2