diff options
author | Fengfei Xi <xi.fengfei@h3c.com> | 2020-12-10 09:21:34 +0100 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2020-12-21 17:59:07 +0100 |
commit | c635b0cea6b812898563809a13e65278989b2c72 (patch) | |
tree | ff73b62dd8cd8d7988d3370b1339cc4521baf28d | |
parent | Documentation/submitting-patches: Document the SoB chain (diff) | |
download | linux-c635b0cea6b812898563809a13e65278989b2c72.tar.xz linux-c635b0cea6b812898563809a13e65278989b2c72.zip |
docs: admin-guide: Fix default value of max_map_count in sysctl/vm.rst
Since the default value of sysctl_max_map_count is defined as
DEFAULT_MAX_MAP_COUNT from mm/util.c
int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;
DEFAULT_MAX_MAP_COUNT is defined as 65530 (65535-5) in include/linux/mm.h
#define MAPCOUNT_ELF_CORE_MARGIN (5)
#define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN)
Signed-off-by: Fengfei Xi <xi.fengfei@h3c.com>
Link: https://lore.kernel.org/r/20201210082134.36957-1-xi.fengfei@h3c.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r-- | Documentation/admin-guide/sysctl/vm.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/admin-guide/sysctl/vm.rst b/Documentation/admin-guide/sysctl/vm.rst index e0cf17ad2ae5..82b5e7ad3e91 100644 --- a/Documentation/admin-guide/sysctl/vm.rst +++ b/Documentation/admin-guide/sysctl/vm.rst @@ -428,7 +428,7 @@ While most applications need less than a thousand maps, certain programs, particularly malloc debuggers, may consume lots of them, e.g., up to one or two maps per allocation. -The default value is 65536. +The default value is 65530. memory_failure_early_kill: |