1 # change the minimum size of the hugepage pool.
\r
4 # this file contains the maximum number of memory map areas a process
\r
5 # may have. memory map areas are used as a side-effect of calling
\r
6 # malloc, directly by mmap and mprotect, and also when loading shared
\r
9 # while most applications need less than a thousand maps, certain
\r
10 # programs, particularly malloc debuggers, may consume lots of them,
\r
11 # e.g., up to one or two maps per allocation.
\r
12 # must be greater than or equal to (2 * vm.nr_hugepages).
\r
13 vm.max_map_count=200000
\r
15 # hugetlb_shm_group contains group id that is allowed to create sysv
\r
16 # shared memory segment using hugetlb page.
\r
17 vm.hugetlb_shm_group=0
\r
19 # this control is used to define how aggressive the kernel will swap
\r
20 # memory pages. higher values will increase agressiveness, lower values
\r
21 # decrease the amount of swap. a value of 0 instructs the kernel not to
\r
22 # initiate swap until the amount of free and file-backed pages is less
\r
23 # than the high water mark in a zone.
\r
26 # this parameter can be used to control the nmi watchdog
\r
27 # (i.e. the hard lockup detector) on x86 systems.
\r
29 # 0 - disable the hard lockup detector
\r
30 # 1 - enable the hard lockup detector
\r
32 # the hard lockup detector monitors each cpu for its ability to respond to
\r
33 # timer interrupts. the mechanism utilizes cpu performance counter registers
\r
34 # that are programmed to generate non-maskable interrupts (nmis) periodically
\r
35 # while a cpu is busy. hence, the alternative name 'nmi watchdog'.
\r
37 # the nmi watchdog is disabled by default if the kernel is running as a guest
\r
38 # in a kvm virtual machine. this default can be overridden by adding
\r
39 #kernel. nmi_watchdog=1
\r
41 # shared memory max must be greator or equal to the total size of hugepages.
\r
42 # for 2mb pages, totalhugepagesize = vm.nr_hugepages * 2 * 1024 * 1024
\r
43 # if the existing kernel.shmmax setting (cat /sys/proc/kernel/shmmax)
\r
44 # is greater than the calculated totalhugepagesize then set this parameter
\r
45 # to current shmmax value.
\r
46 kernel.shmmax=8589934592
\r
48 # this option can be used to select the type of process address
\r
49 # space randomization that is used in the system, for architectures
\r
50 # that support this feature.
\r
51 # 0 - turn the process address space randomization off. this is the
\r
52 # default for architectures that do not support this feature anyways,
\r
53 # and kernels that are booted with the "norandmaps" parameter.
\r
54 kernel.randomize_va_space=0
\r
56 # this parameter can be used to control the soft lockup detector.
\r
58 # 0 - disable the soft lockup detector
\r
59 # 1 - enable the soft lockup detector
\r
61 # the soft lockup detector monitors cpus for threads that are hogging the cpus
\r
62 # without rescheduling voluntarily, and thus prevent the 'watchdog/n' threads
\r
63 # from running. the mechanism depends on the cpus ability to respond to timer
\r
64 # interrupts which are needed for the 'watchdog/n' threads to be woken up by
\r
65 # the watchdog timer function, otherwise the nmi watchdog - if enabled - can
\r
66 # detect a hard lockup condition.
\r
67 #kernel.soft_watchdog=0
\r
69 # this value can be used to control on which cpus the watchdog may run.
\r
70 # the default cpumask is all possible cores, but if no_hz_full is
\r
71 # enabled in the kernel config, and cores are specified with the
\r
72 # nohz_full= boot argument, those cores are excluded by default.
\r
73 # offline cores can be included in this mask, and if the core is later
\r
74 # brought online, the watchdog will be started based on the mask value.
\r
76 # typically this value would only be touched in the nohz_full case
\r
77 # to re-enable cores that by default were not running the watchdog,
\r
78 # if a kernel lockup was suspected on those cores.
\r
79 kernel.watchdog_cpumask=0,18
\r