Do you experience unexplained crashes or freeze-ups on your Ubuntu (or other) Linux based home theater PC or gaming system? Here is a possible fix!
After installing Ubuntu 22.04, Kodi on a home theater PC would frequently freeze. This issue, applicable to various Linux distros, can be resolved by increasing the vm.max_map_count value in sysctl.conf. This setting controls the maximum number of memory map areas a process may have, crucial for applications like Kodi that use numerous memory-mapped files.
@twosortoftechguys
The first post of this new account on this instance may have resolved a problem I've been trying to figure out for over 2 years! Fingers crossed!
While I'm not using Kodi, I have been having these random crashes.
My sysctl.conf didn't have a value for vm.max_map_count, but when I ran "sudo cat /proc/sys/vm/max_map_count" I saw it was set to the default of 65,530.