On my Fedora laptop, I have deactivated the swap partition because it appears pretty useless to me. The system will come to a halt when it starts writing to the SSD. The applications that consume this much memory usually do not stop, so once they are allocating, they will allocate more and more (gitk with 1M line diffs, faulty program with memory leak, …).
Still I find the system writing to the SSD when memory runs out. It seems that there is no swap enabled:
$ free -h total used free shared buff/cache available Mem: 7,7G 2,2G 455M 685M 5,1G 4,8G Swap: 0B 0B 0B
Where is the setting that I have to enable in order to let the kernel kill programs instead of swapping to the SSD?