I’m using an XPS 13 9350 with 16GB of RAM and the Intel Graphics 540. I am using Fedora KDE spin. When I am using computer, either randomly or when I start a program, my computer will slow down and quickly fully freeze. In this state, the only thing I can do is shut it down. Is there any way to make it so that a program is killed, or something else that doesn’t fully stop my system?
Seconded on less swap. It depends on if you’d prefer to have a process be killed (have less swap) or the system go unresponsive for a while and eventually (hopefully) come back (more swap).
Also if the swap is on a slow disk, try moving it to a faster one if possible.