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]>
# 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