Bug 33079

Summary: Set the default value of vm_max_map_count to a higher value
Product: Mageia Reporter: papoteur <yvesbrungard>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: vinceff
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://memgraph.com/docs/configuration/system-configuration
Whiteboard:
Source RPM: CVE:
Status comment:

Description papoteur 2024-04-09 17:31:00 CEST
Description of problem:
Some application using a lot of memory can crash when the memory map is too low. The default value is set to 2^32 which was enough with 8Gib of RAM.

According to the page linked, vm.max_map_count=1048576 could be adapted until 128 GiB and could be the default.

I don't know what is the good way to apply the change.
Comment 1 vinceff 2024-04-09 18:31:18 CEST
The bug appear, on games like Hogwarts Legacy or Star Citizen. There is around 20 games today impacted by this value too low. But we can consider in the future games will also need this change.

Ubuntu already have make the choice to increase at 1048576 for the next LTS. Ubuntu 24.04 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2057792

Fedora have already made the change since Fedora 39.
https://fedoraproject.org/wiki/Changes/IncreaseVmMaxMapCount

Arch validated also the change this week.
https://www.phoronix.com/news/Arch-Linux-vm.max_map_count

CC: (none) => vinceff