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