In this video I cover how to change the vm.max_map.count value, a Linux kernel parameter, in order to prevent certain games from crashing whilst using compatibility layers such as Steam Proton.
The vm.max_map.count value is responsible for controlling the maximum number of memory map areas that a process can have.
Or in other words, prevent a single or group of processes from consuming excessive amounts of virtual memory that could lead to performance or system instability.
Step 1. Changing The vm.max_map.count Value.
To change the limit, it will differ slightly depending on your Linux distribution.
For Ubuntu based distributions, you will need to amend the systctl.conf file located at.
/etc/sysctl.conf
This can be done with the following Terminal command.
sudo nano /etc/sysctl.conf
So, with the file open, simply scroll down to the bottom and add the following value.
vm.max_map_count=2147483642
Once done, save the file and reboot the machine.
Alternatively, for Arch based distributions, you will need to edit the 80-gamecompatibility.conf file, located at.
/etc/sysctl.d/80-gamecompatibility.conf
Again, this can be done using the following Terminal command.
sudo nano /etc/sysctl.d/80-gamecompatibility.conf
Once again, scroll down to the bottom and add the following value.
vm.max_map_count=2147483642
Save the file when done, and reboot the machine to apply.
Step 2. Checking The New vm.max_map.count Value.
To check that the new value has been applied, simply run the following Terminal command.
cat /proc/sys/vm/max_map_count
Which should return 2147483642
All done.
#proton #steam #linux
Social Media Links
Discord - / discord
Reddit - / intelligentgaming2020
Смотрите видео "How To Stop Windows Games From Crashing on Linux - Simple Guide" онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Intelligent Gaming 03 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,379 раз и оно понравилось 92 людям.