vpp_config: leave vm.max_map_count alone by default 62/42262/1
authorDave Barach <[email protected]>
Tue, 28 Jan 2025 16:49:57 +0000 (11:49 -0500)
committerDave Barach <[email protected]>
Tue, 28 Jan 2025 16:50:18 +0000 (11:50 -0500)
Do not set vm.max_map_count to 3096 by default. That value is an order
of magnitude smaller than current distro defaults, and causes
seemingly "random" severe application failures; known to occur when
running Brave, Firefox, and VirtualBox to name but a few.

Type: fix

Change-Id: Ibe7518d92c3be9a4704972c9d504777776f924dc
Signed-off-by: Dave Barach <[email protected]>
src/vpp/conf/80-vpp.conf

index 2207e2e..8971d9a 100644 (file)
@@ -1,8 +1,13 @@
 # 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
+# The vm max_map_count must be greater than or equal to (2 * vm.nr_hugepages).
+
+# The system default is often an order of magnitude greater than the
+# value below. If you uncomment this stanza and reboot as-is, watch
+# out for seemingly "random" severe application failures; known to
+# occur in Brave, Firefox, and VirtualBox to name but a few.
+# vm.max_map_count=3096
 
 # All groups allowed to access hugepages
 vm.hugetlb_shm_group=0