]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review 14300/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 6 Jun 2024 11:55:34 +0000 (13:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 6 Jun 2024 12:10:06 +0000 (14:10 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/recursordist/docs/performance.rst

index 6668de07c322bc8baa49fa0a87769a5b5b6909c3..c023c11ae072992b666dd983acbcf37bc547c841 100644 (file)
@@ -89,11 +89,11 @@ To reduce the cost of allocating a new stack for every query, the recursor can c
 This limit is per physical (Posix) thread.
 The only trade-off of enabling this cache is a slightly increased memory consumption, at worst equals to the number of stacks specified by :ref:`setting-stack-cache-size` multiplied by the size of one stack, itself specified via :ref:`setting-stack-size`.
 
-Linux limits the number of memory mappings a process can allocate by the the ``vm.max_map_count`` kernel parameter.
-A single ``MThead`` stack can take up to 3 memory mappings.
-Starting with version 4.9, it is advised to set ``sysctl vm.max_map_count`` to make sure that the :program:`Recursor` can allocate enough stacks under load; suggested value is at least ``4 * (threads + 2) * max-mthreads``.
-Some Linux distributions use the value of about one million, which should be enough for most configurations.
-Other distributions default to 64k, which can be too low.
+Linux limits the number of memory mappings a process can allocate by the ``vm.max_map_count`` kernel parameter.
+A single ``MThread`` stack can take up to 3 memory mappings.
+Starting with version 4.9, it is advised to check and if needed update the value of ``sysctl vm.max_map_count`` to make sure that the :program:`Recursor` can allocate enough stacks under load; suggested value is at least ``4 * (threads + 2) * max-mthreads``.
+Some Linux distributions use a default value of about one million, which should be enough for most configurations.
+Other distributions default to 64k, which can be too low for large setups.
 
 Performance tips
 ----------------