From 0e223427e572b4372be832b5e3723c4b4336024b Mon Sep 17 00:00:00 2001 From: zsdc Date: Wed, 5 Jul 2023 16:49:09 +0300 Subject: 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. --- data/templates/vpp/sysctl.conf.j2 | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 data/templates/vpp/sysctl.conf.j2 (limited to 'data/templates/vpp/sysctl.conf.j2') 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 -- cgit v1.2.3