Background Info
Source 2 in Proton exceeds Linux's default virtual memory max limit of
65530
or about
512MB
.
We can confirm this if we run the command
sudo sysctl vm.max_map_count
or
cat /proc/sys/vm/max_map_count
and we should get a value of
65530
.
Our goal here is to increase your maximum virtual memory limit!
Solution
For this solution I used
1048576
or
8GB
of virtual memory as it's the becoming the new default on many Linux Systems.
To permanently change your virtual memory limit you must edit a system file that you will need escalated privileges for.
We will be editing
sysctl.conf
but depending on your system's configuration you might need to change a different file.
Open the file via the editor of your choice with
sudo
. For example
sudo nano /etc/sysctl.conf
and add the line
vm.max_map_count=1048576
to the bottom of the file and reboot your machine. If it doesn't work check if you have another configuration file that could be causing conflicts. As the higher the number the later it makes the change to your system. So
sysctl.conf
will run before
99-sysctl.conf
.
Notes
- We can temporarily achieve this by the following command:
sudo sysctl -w vm.max_map_count=1048576
.
- You can read about the vm max map count parameter in the documentation provided in the sources.
- As per this message from Yoshi a proper Linux build or further proton support is not planned.
Credit
ⒶVixy the braixenⒶ
Adler
Xinaydered
Arch Linux Update Post
OpenSuse Docs
Kernel Docs
Linux guide for A Hat In Time (Outdated)