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