LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-06-2004, 08:28 AM   #1
bleunuit
LQ Newbie
 
Registered: May 2004
Posts: 18

Rep: Reputation: 0
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
 
Old 08-06-2004, 11:35 AM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
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.
 
Old 08-06-2004, 11:46 AM   #3
bleunuit
LQ Newbie
 
Registered: May 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, I'll give that a go.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kill <pid> does not do anything moskito01 Linux - General 9 08-25-2009 12:20 PM
PID Kill Script or command ? Webmin rapture_1 Linux - General 1 11-02-2005 11:11 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
small bash script to kill a PID flosch Linux - General 3 05-06-2004 09:28 PM
question about kill(pid, sig) THETEZ Programming 3 04-18-2004 05:37 AM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration