Linux – How to kill processes unresponsive to kill -9

linux

I am seeing processes on my SGI Altix 450 running SLES 10.1 seemingly stop running (i.e. not provide further output in their logs for hours). At this point I want to kill the offending process so I can restart it. Top shows that the process is in the (R) state. Although when I attempt to kill it nothing happens. Even when I use kill -9 it still lingers. In this case what can I do other than restart the machine?

Best Answer

It is possible that process is killed but waiting for parent to collect its return value. In that case after it is killed it would be in state 'Z' and not 'R'. In that case you should find ppid of process using ps command and kill the parent process too(If you are really sure it wont cause any problems).

The other case could be that for some reason process is restarting after being killed like tty. In that case the process id should change every time you do kill -9. See if process ID is changing every time you are try to kill it.