No edit summary |
(Change accepted F39) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
= Increase vm.max_map_count value <!-- The name of your change proposal --> = | = Increase vm.max_map_count value <!-- The name of your change proposal --> = | ||
== Summary == | == Summary == | ||
Line 21: | Line 20: | ||
== Current status == | == Current status == | ||
[[Category: | [[Category:ChangeAcceptedF39]] | ||
<!-- When your change proposal page is completed and ready for review and announcement --> | <!-- When your change proposal page is completed and ready for review and announcement --> | ||
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler --> | <!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler --> | ||
Line 40: | Line 39: | ||
--> | --> | ||
* [https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/WVWHTLXSGZN4QMAE577ZFZX4ZI6YZF3A/ devel thread] | * [https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/WVWHTLXSGZN4QMAE577ZFZX4ZI6YZF3A/ devel thread] | ||
* FESCo issue: | * FESCo issue: [https://pagure.io/fesco/issue/2993 #2993] | ||
* Tracker bug: | * Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=2216765 #2216765] | ||
* Release notes tracker: | * Release notes tracker: [https://pagure.io/fedora-docs/release-notes/issue/997 #997] | ||
== Detailed Description == | == Detailed Description == | ||
Line 49: | Line 48: | ||
The goal is to improve compatibility with Windows games through wine or steam. Read on "Benefit to Fedora" for examples. | The goal is to improve compatibility with Windows games through wine or steam. Read on "Benefit to Fedora" for examples. | ||
It was agreed to set the limit to `1048576`, up from the Linux default `65530`. | |||
== Feedback == | == Feedback == | ||
Line 80: | Line 79: | ||
== How To Test == | == How To Test == | ||
Temporarily set the new value with `sudo sysctl -w vm.max_map_count= | Temporarily set the new value with `sudo sysctl -w vm.max_map_count=1048576` | ||
Run any of the software listed above to verify that it now works. | Run any of the software listed above to verify that it now works. |
Latest revision as of 14:03, 22 June 2023
Increase vm.max_map_count value
Summary
This change aims at increasing the default value of the vm.max_map_count
sysctl
Owner
- Name: Alessandro Astone
- Email: ales.astone@gmail.com
Current status
- Targeted release: Fedora Linux 39
- Last updated: 2023-06-22
- devel thread
- FESCo issue: #2993
- Tracker bug: #2216765
- Release notes tracker: #997
Detailed Description
Increase the vm.max_map_count sysctl default value.
The goal is to improve compatibility with Windows games through wine or steam. Read on "Benefit to Fedora" for examples.
It was agreed to set the limit to 1048576
, up from the Linux default 65530
.
Feedback
This was briefly discussed in #fedora-devel and received positively. Concerns over possible downsides were raised. I am not aware of any, but more input here is desired.
Benefit to Fedora
The following Windows games will work out of the box (through wine or steam):
- DayZ: https://steamcommunity.com/app/221100/discussions/0/3199241400256965913/
- Hogwarts Legacy: https://github.com/ValveSoftware/Proton/issues/6510
- Counter Strike 2 (Beta Windows build): https://www.youtube.com/watch?v=i02n_Ak98TA
- Any other software that might be invoking a lot of mmaps
Scope
- Proposal owners: Add the new default to
/usr/lib/sysctl.d/
- Other developers: No work will be necessary unless the new default is found breaking some software
- Release engineering: N/A (not needed for this Change)
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with Community Initiatives: N/A
Upgrade/compatibility impact
Upgrading to the new Fedora release will seamlessly update the default. No manual intervention is necessary.
How To Test
Temporarily set the new value with sudo sysctl -w vm.max_map_count=1048576
Run any of the software listed above to verify that it now works.
Or run any other software to verify the change causes no regression.
User Experience
More Windows games will work out-of-the-box (through wine or steam)
Dependencies
None
Contingency Plan
- Contingency mechanism: Revert the shipped configuration
- Contingency deadline: Final Freeze
- Blocks release? No
Documentation
The default value is currently hard-coded in the kernel, at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/mm.h?h=v6.2.12#n203 . It cannot be changed through the kernel defconfig, instead it must be set through sysctl.
Release Notes
The default value of the vm.max_map_count sysctl is increased