summaryrefslogtreecommitdiff
path: root/data/templates/vpp
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2023-07-05 16:49:09 +0300
committerzsdc <taras@vyos.io>2023-07-06 13:42:16 +0300
commit0e223427e572b4372be832b5e3723c4b4336024b (patch)
tree64cdd529599f3746323f02663cb9339ef3ede3da /data/templates/vpp
parentd3ead28d1391f1102e6e89de119226557f3fcce3 (diff)
downloadvyos-1x-0e223427e572b4372be832b5e3723c4b4336024b.tar.gz
vyos-1x-0e223427e572b4372be832b5e3723c4b4336024b.zip
VPP: T1797: Optimized memory allocation during startup
- changed memory requirement from total to available. This allows to start on systems with less total memory and protects from startup on systems with overloaded memory. - prevent startup if sysctl settings were not applied. This protects from situations when the system cannot allocate enough hugepages or apply other sysctl settings.
Diffstat (limited to 'data/templates/vpp')
-rw-r--r--data/templates/vpp/sysctl.conf.j215
1 files changed, 0 insertions, 15 deletions
diff --git a/data/templates/vpp/sysctl.conf.j2 b/data/templates/vpp/sysctl.conf.j2
deleted file mode 100644
index 2207e2e38..000000000
--- a/data/templates/vpp/sysctl.conf.j2
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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