3 ms·
A much better way to handle desktop memory is to have both a generous amount of swap on fast storage, both to allow hibernation AND to allow a bit of wiggle roo
by yabones 5y ago
A much better way to handle desktop memory is to have both a generous amount of swap on fast storage, both to allow hibernation AND to allow a bit of wiggle room if things fill up too fast, and also installing and enabling earlyoom(1) with a high but effective threshold to prevent a lockup. Sure, it can cause things to break when using lots of memory, but it never lets you completely stall out.
There are now configurations within systemd for this, but I'm simply more familiar with earlyoom daemon.
https://manpages.debian.org/bullseye/earlyoom/earlyoom.1.en.html https://manpages.debian.org/bullseye/earlyoom/earlyoom.1.en....
https://wiki.archlinux.org/title/Improving_performance#Improving_system_responsiveness_under_low-memory_conditions https://wiki.archlinux.org/title/Improving_performance#Impro...