From d38aeaea4c538f840f1e074c0f70b01c3bc048ad Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 28 Jan 2025 11:49:57 -0500 Subject: [PATCH] vpp_config: leave vm.max_map_count alone by default 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 (cherry picked from commit 81996c1970b7db39f1ffe7a919bbb3a3ab9a0740) --- src/vpp/conf/80-vpp.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/vpp/conf/80-vpp.conf b/src/vpp/conf/80-vpp.conf index 2207e2e3824..8971d9a1ce9 100644 --- a/src/vpp/conf/80-vpp.conf +++ b/src/vpp/conf/80-vpp.conf @@ -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 -- 2.16.6