diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-07-01 06:23:38 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-07-01 06:23:38 +0000 |
commit | 8b2b036b4f045316032643c6170d694b0efd6788 (patch) | |
tree | f357d415f5d5f2267cd80b1f255c164312e94797 /data/templates/vpp/sysctl.conf.j2 | |
parent | 865d9db1b9843f7ac818b82904580bd09f1c2ac5 (diff) | |
download | vyos-1x-8b2b036b4f045316032643c6170d694b0efd6788.tar.gz vyos-1x-8b2b036b4f045316032643c6170d694b0efd6788.zip |
T1797: VPP verify minimal installed memory and apply sysctl
Do not allow configure VPP if on the systems with low amount
installed memory
Add sysctl VPP parameters (hugepages, kernel.shmmax)
Diffstat (limited to 'data/templates/vpp/sysctl.conf.j2')
-rw-r--r-- | data/templates/vpp/sysctl.conf.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/vpp/sysctl.conf.j2 b/data/templates/vpp/sysctl.conf.j2 new file mode 100644 index 000000000..2207e2e38 --- /dev/null +++ b/data/templates/vpp/sysctl.conf.j2 @@ -0,0 +1,15 @@ +# Number of 2MB hugepages desired +vm.nr_hugepages=1024 + +# Must be greater than or equal to (2 * vm.nr_hugepages). +vm.max_map_count=3096 + +# All groups allowed to access hugepages +vm.hugetlb_shm_group=0 + +# Shared Memory Max must be greater or equal to the total size of hugepages. +# For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024 +# If the existing kernel.shmmax setting (cat /proc/sys/kernel/shmmax) +# is greater than the calculated TotalHugepageSize then set this parameter +# to current shmmax value. +kernel.shmmax=2147483648 |