Ubuntu – Whats the best action to take when the system freezes

16.04crash

Lately, this has been happenly far too frequently.

I am running Ubuntu 16.04 on Lenovo X220 with an 960gb SSD added by myself.

Lately, virtually, every other day, while coding, my system goes crazy, i.e., the hard drive activity light switches on and the cursors stops responding to mousemove. The system fan speeds up (audibly).

Applications wise, always, I have around two browsers open (Firefox Dev version, Chrome or Opera), Atom editor, terminal with javascript node processes running on live server.

I have tried waiting for the system to get back to normal, however, most of times, I just give up after 10min or so and hard-switch off the system.

My questions is, what is the correct action to take, should I just leave the system as it and go away, hoping it will get back to normal after 30min or so? Or Is hard-switch off the right thing to do under the circumstances?

Best Answer

Looks like some process is running wild and grabbing all of your system resources. I would try to switch to any of the text-based consoles (Ctrl+Alt+Fn). On Ubuntu 1-6 are text based and on the 7th your xserver runs, e.g. Ctrl+Alt+F1 should be good.

If you can manage that, you probably can run top or similar to check for resource hogs.

If you're not too concerned about data loss, you can kill the offending process using the PID you got from top.

But this is just the cure for symptoms. You should note the offending process and do some more research why it suddenly runs rogue.

Related Question