Bug 1214445 - Change: Increase vm.max_map_count value
Summary: Change: Increase vm.max_map_count value
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-21 16:25 UTC by B
Modified: 2023-09-13 10:47 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description B 2023-08-21 16:25:30 UTC
The vm.max_map_count sysctl value controls the operating system limits on the maximum number of memory map (mmap) areas that a process can have. 
While Tumbleweed defaults to of ~65k for vm.max_map_count and matches that of many other OS defaults, SteamOS for e.g. ships with a value of 2147483642.

Most software doesn't use too many mmaps that the 65k default is suitably for the vast majority of user-space software out there. But in particular for a few and unfortunately increasing number of Windows games running on Linux via Steam Play (Proton), that limit can actually be exceeded. Among the known games needing a higher memory map limit are DayZ, Hogwarts Legacy, Counter Strike 2, and others. 


-Fixes some newer video games, as mentioned in https://www.phoronix.com/news/Fedora-39-Max-Map-Count-Approve

-Without this you will experience crashes on some newer games. (Hogwarts Legacy, Etc..)

The easiest way to "fix" this is to add a drop-in conf file into 
/usr/lib/sysctl.d/ with the desired (higher) value.

Kernel Docs: kernel.org/doc/Documentation/sysctl/vm.txt
SUSE Support: suse.com/support/kb/doc/?id=000016692
Comment 1 Jiri Slaby 2023-09-13 10:47:06 UTC
Fedora went for 1'048'576 in the end. I don't see reasons why we should keep the limit low, unless something breaks.

So raising to 1048576 in master.