Hi, many users, including myself, have observed improved game stability by increasing the vm.max_map_count kernel parameter. Games like Counter-Strike 2, Hogwarts Legacy, DayZ, Payday 2, and Star Citizen greatly benefit from a higher vm.max_map_count , experiencing no more crashes and better performance.
SteamOS and Fedora has already adopted a higher default value for this parameter, leading to a noticeably smoother gaming experience. Implementing a similar adjustment in the next Ubuntu release could provide a substantial boost to the gaming community, making Ubuntu an even more attractive platform for gamers.
Thank you for considering this enhancement. Your efforts to improve the gaming ecosystem on Linux are greatly appreciated.
may be related to next Ubuntu cycle, but fs.inotify.max_user_instances is leaking due some PowerShell extemporare and increasing it temporarily fixed it for a few years… silly
It should may be fixed in vanilla kernel, but /proc was deprecated 20 years ago…
mv /proc/* /sys/deprecated/
ctrl+F or ctrl+H and replace all occurences in kernel and force update all progs similar way and let kernel devs work on this
I found this in a Stack forum and it worked for me on Ubuntu Server 22.04.4 LTS; Kernel 6.5.0-27-lowlatency
# sudo sysctl -w vm.max_map_count=262144
Then for the persistence configuration. Must be LOGGED IN as root. Using sudo for this command while logged in as <user> will be denied.
# sudo su
# echo "vm.max_map_count=262144" >> /etc/sysctl.conf
Then reboot with your favorite method.
To check if changed...
# cat /proc/sys/vm/max_map_count