After I upgraded from HDD to SSD, I followed some tips from Internet and turned swap off, but then, my OS would always freeze when out of memory although I have 8GB RAM and just open some applications.
Today I decide to turn swap on to get my system working better. Are there any better solutions for my case?
sudo swapoff -a
htop
to see how much RAM is used, and that way find out what might cause the system to run out of memory and freeze. – sudodus Mar 27 '17 at 11:52