# 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?

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.