summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-01 12:51:01 +0200
committerGitHub <noreply@github.com>2023-07-01 12:51:01 +0200
commit55d6c5749e85fe6d4b771bcdf09fffdd6d6ecb92 (patch)
treef0ef4ba852afba94c569f169423b4727512a58b0 /data/templates
parenta409b255acc3dc0a67058593e31b3614e20714f0 (diff)
parent8b2b036b4f045316032643c6170d694b0efd6788 (diff)
downloadvyos-1x-55d6c5749e85fe6d4b771bcdf09fffdd6d6ecb92.tar.gz
vyos-1x-55d6c5749e85fe6d4b771bcdf09fffdd6d6ecb92.zip
Merge pull request #2064 from sever-sever/T1797
T1797: VPP verify minimal installed memory and apply sysctl
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/vpp/sysctl.conf.j215
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