Hello dear Manjaro fellows
I’ve very often come across a situation where my PC almost completely freezes, when I for example have 876 tabs opened in firefox and decide to compile something from the AUR. The only method to non-destructively resolve this situation is to switch to an alternate TTY, e.g. Ctrl+Alt+F4 and pkill firefox. That usually takes some time since even the shell is unresponsive and the first many attempts generate a 60s login timeout before I can enter the password.
Usually I decide to create a swapfile right after installation. But there is an even better solution, which I am confident could be a very welcomed default system component: systemd-swap
I found it on the Manjaro wiki:
It’s easy as pie and works like a charm. Install via package manager, tweak two lines in the default config and enable the service.
After discovering Cart Narcs on youtube I just watched my swap grow from 256 MB to 4 GB and shrink down again. I did not notice any hiccup on my system at all. Amazing!
What should be discussed, though, is the remark of the systemd-swap developers on their github repository, which states that users should migrate to zram-generator, also mentioned on the Arch-wiki page about Swap:
What do you think? Should this stay a manual task that every user has to take and decide upon one of the many (partly not well-known) solutions?
I am curious about your opinions!