LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   when kill -9 PID wont work (https://www.linuxquestions.org/questions/linux-software-2/when-kill-9-pid-wont-work-214226/)

bleunuit 08-06-2004 08:28 AM

when kill -9 PID wont work
 
So I tried to create an nfs mount between two machines. I went through all the necessary steps ie. making sure portmap was running, and nfs was running correctly and all of that,. When i tried to mount the file system after exporting it, it hung and froze up my xterm (I was ssh'd into the mounting machine).

Naturally, I logged back in, messed with some settings, and tried to mount again with the same results.

Now I have these mount processes that WILL NOT DIE. They are in state D which i read is un-interruptable sleep state. I have also read that the only way to get rid of these processes is to reboot the machine.........for me this is not an option.

This wouldnt really be a problem, except that these processes are causing a large processor load on my machine which is just no good.

To sum up, does anyone know how to kill a process in the D state without rebooting?

thanks
-bleunuit

h/w 08-06-2004 11:35 AM

Hi,
This *might* require some debugging in the kernel [I'm not sure, however] as the process seems to be in kernel space.

do a 'ps -o pid,fname,wchan -C <name-of-process>'

What it gives you under the 'wchan' column is where the block is at.
{make sure that the System.map file you have is linked to the correct one for the kernel you are running as otherwise it will be incorrect}

Now, do a search in the files under the kernel sources' root directory, for the name returned under 'wchan'.

Check the lines of code where you think the problem is, and try to rectify it. That's all I can say.

OR, reboot. :)

bleunuit 08-06-2004 11:46 AM

Thanks, I'll give that a go.


All times are GMT -5. The time now is 02:22 AM.