]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
kern.max_map_count -> vm.max_map_count; from @phonedph1 14222/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 May 2024 13:10:07 +0000 (15:10 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 23 May 2024 07:05:29 +0000 (09:05 +0200)
(cherry picked from commit 83c50a424b44715efa4c40724dfb1cf2ba4b935b)

pdns/recursordist/rec-main.cc

index 5383528cc04bca8a3bd2e4b00f338df379332e20..6f1f21d955ea7e09a361bf64df880b0ae72076e2 100644 (file)
@@ -922,7 +922,7 @@ static void checkOrFixLinuxMapCountLimits([[maybe_unused]] Logr::log_t log)
       g_maxMThreads = static_cast<unsigned int>(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)));
     }
   }