I find that sometimes my Linux will stop responding, so I need to switch to another terminal with CtrlAltF2, and type a command to kill the top CPU usage process or top IO usage process, so that the system can be responsive again.
This command should be short and execute quickly.
I know the command kill, but I do not know how to get the top-est process PID or name.
I will add this command into shell alias or function.
limits.conf. Setting these may help you out much better. – jippie Jun 14 '12 at 15:31