blob: 539cbb704dc4724d8cc8ec9aea51d704320112ff [file] [log] [blame]
John DeNisco68b0ee32017-09-27 16:35:23 -04001# Number of 2MB hugepages desired
2vm.nr_hugepages=1024
3
4# Must be greater than or equal to (2 * vm.nr_hugepages).
5vm.max_map_count=3096
6
7# All groups allowed to access hugepages
8vm.hugetlb_shm_group=0
9
Paul Vinciguerra35b037f2019-10-29 22:58:50 -040010# Shared Memory Max must be greater or equal to the total size of hugepages.
John DeNisco68b0ee32017-09-27 16:35:23 -040011# For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024
12# If the existing kernel.shmmax setting (cat /sys/proc/kernel/shmmax)
13# is greater than the calculated TotalHugepageSize then set this parameter
14# to current shmmax value.
15kernel.shmmax=2147483648