]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
kern.max_map_count -> vm.max_map_count; from @phonedph1
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>
Tue, 21 May 2024 13:47:33 +0000 (15:47 +0200)
pdns/recursordist/rec-main.cc

index e553317bd7d1aaa9aad0586909e290f5fc1aa4f3..8a5c015d3be63d0399e6e0607a067997de11a209 100644 (file)
@@ -949,7 +949,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)));
     }
   }