John DeNisco | 68b0ee3 | 2017-09-27 16:35:23 -0400 | [diff] [blame] | 1 | # Number of 2MB hugepages desired |
| 2 | vm.nr_hugepages=1024 |
| 3 | |
| 4 | # Must be greater than or equal to (2 * vm.nr_hugepages). |
| 5 | vm.max_map_count=3096 |
| 6 | |
| 7 | # All groups allowed to access hugepages |
| 8 | vm.hugetlb_shm_group=0 |
| 9 | |
Paul Vinciguerra | 35b037f | 2019-10-29 22:58:50 -0400 | [diff] [blame] | 10 | # Shared Memory Max must be greater or equal to the total size of hugepages. |
John DeNisco | 68b0ee3 | 2017-09-27 16:35:23 -0400 | [diff] [blame] | 11 | # 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. |
| 15 | kernel.shmmax=2147483648 |