It usally freezes when you run out of both RAM and swap.
Thank you, very useful. Do you recommend setting swappiness to 1 even when using a SSD?
I'm happy it was useful for you :-)
I have done so with SSD. I have 8GB RAM which is quite useless without swap. If you have much RAM I guess you can just disable swap totally.