We do often include affiliate links to earn us some pennies. See more here.

Nice to see more Linux distributions make changes to ensure the gaming experience is good. Arch Linux is now following Fedora and Ubuntu on upping the vm.max_map_count value.

The issue is the default from the upstreaming Linux kernel is just too low for some games like The Finals, Hogwarts Legacy, DayZ, Counter-Strike 2 and various others causing them to crash. Not a good experience for end-users.

Announced in an official news post:

The vm.max_map_count paramater will be increased from the default 65530 value to 1048576.

This change should help address performance, crash or start-up issues for a number of memory intensive applications, particularly for (but not limited to) some Windows games played through Wine/Steam Proton. Overall, end users should have a smoother experience out of the box with no expressed concerns about potential downsides in the related proposal on arch-dev-public mailing list.

This vm.max_map_count increase is introduced in the 2024.04.07-1 release of the filesystem package and will be effective right after the upgrade.

Before upgrading, in case you are already setting your own value for that parameter in a sysctl.d configuration file, either remove it (to switch to the new default value) or make sure your configuration file will be read with a higher priority than the /usr/lib/sysctl.d/10-arch.conf file (to supersede the new default value).

Pictured - DayZ

Want to know what your current value is? You can run this in terminal cat /proc/sys/vm/max_map_count

If you want to test a different value, in terminal you can run sudo sysctl -w vm.max_map_count=1048576 which will persist until a reboot.

Article taken from GamingOnLinux.com.
24 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly checked on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly. You can also follow my personal adventures on Bluesky.
See more from me
All posts need to follow our rules. For users logged in: please hit the Report Flag icon on any post that breaks the rules or contains illegal / harmful content. Guest readers can email us for any issues.
14 comments

pb Apr 8
$ cat /proc/sys/vm/max_map_count
65530

Why am I hearing about it just now?
pb Apr 8
BTW why is default 65530 and not a round number like 65536?
fabertawe Apr 8
Mine's already at 16777216. Can't remember why that figure exactly though, probably after reading something Proton related previously.

Edit: I added it a year ago, from https://www.phoronix.com/news/Fedora-39-VM-Max-Map-Count.


Last edited by fabertawe on 8 April 2024 at 8:47 am UTC
Sojiro84 Apr 8
Mine is set automatically to 2147483642.

I run EndeavourOS.
Jajcus Apr 8
BTW why is default 65530 and not a round number like 65536?

Probably the structure holding those takes some extra space for 'bookkeeping'. In such case allocating exactly 65536 entries would require some number of full memory pages and a few bytes on another page that would be mostly empty, which would be inefficient.
Nice to see everyone agreeing on this ☺️✌️
Xpander Apr 8
It seems i already have changed mine way higher in the past. Still rocking the same Arch install i installed back in 2013. Just keep on Rolling!

xpander@archlinux ~ $ cat /etc/sysctl.d/80-gamecompatibility.conf
vm.max_map_count = 2147483642



Last edited by Xpander on 14 April 2024 at 7:23 am UTC
tfk Apr 8
Ahem, I use Fedora BTW...
WMan22 Apr 8
I'm actually surprised this wasn't already a thing for a while.
So for those of us who don't know, what would upping this actually help with, and how would one know if one was running into problems with it in the first place?
tfk Apr 9
So for those of us who don't know, what would upping this actually help with, and how would one know if one was running into problems with it in the first place?

I believe the game just CTD's as it needs more memory than the system allows for.

Example case:
https://steamcommunity.com/app/990080/discussions/0/3761104682797572808/
Ehvis Apr 9
View PC info
  • Supporter Plus
So for those of us who don't know, what would upping this actually help with, and how would one know if one was running into problems with it in the first place?

I believe the game just CTD's as it needs more memory than the system allows for.

Example case:
https://steamcommunity.com/app/990080/discussions/0/3761104682797572808/

It's not about needing more memory, but needing more memory mappings. It's kind of similar to the file descriptor count number that became an issue when esync became a thing. Over time, software/games just need more of them as they have more uses. If the system doesn't allow for more, a process just crashes. Most of those defaults were set long ago and don't reflect current times.
  • Supporter Plus
Considering this is Arch, shouldn't these users already know or at least be doing this themselves? I mean they do call themselves the geeks of Linux after all...
Breizh Apr 10
Considering this is Arch, shouldn't these users already know or at least be doing this themselves? I mean they do call themselves the geeks of Linux after all...

The question was already addressed when the proposal was submited:

While I'm aware that Arch is a user centric/DIY distro and everyone can
set their own `vm.max_map_count` value fairly easily, shipping an
increased value on our side would be a beneficial change to make in my
opinion as it would result in a smoother gaming experience out of the
box for our users without representing any downside/side effect (as far
as I'm aware).
Source (linked in the article): https://lists.archlinux.org/archives/list/[email protected]/thread/5GU7ZUFI25T2IRXIQ62YYERQKIPE3U6E/

Just because you can configure something doesn't mean you have to leave a crappy default value.

Given that many distros make this change, we can also expect it to become the kernel default in the future (special cases such as embedded will then be the ones who have to reconfigure it).


Last edited by Breizh on 10 April 2024 at 11:57 am UTC
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register