On Tue, 30 Jan 2001 at 12:07am (-0900), James wrote:

> I have a process on my machine that ps aux and top report as 'asleep and
> non-interruptable' ("D" in top).  I've perused my O'Reilly books and what
> online help I can find as to how to kill this thing.  So far, the best I've
> been able to figure out is reboot the machine.  :(
>
> I would rather avoid the Redmondian solution to this problem.
>
> Is there any way to wake up a sleeping process so that it *is* interruptable
> (and therefore killable)?
>
> (Yes, I have tried to kill it as root, yes I have tried kill -9  and just
> about every other kill -n combination I could find).
>

Generally speaking a process in D state (disk) is 'in kernel' and theres
nothing you can do about it.  Sometimes you can attach strace to the process
and see what it's waiting on and give it what it wants (bring back it's nfs
mount for instance) but this is by no means reliable.  lsof is also useful
here, but sometimes you'll find it hangs for the same reason the process
you're investigating is huhg.

Its not that the process is ignoring the kill signal but rather the kernel
hasn't 'delivered' the signal yet.  The process is inside and atomic
operation/syscall and won't see the signals until(if) it comes out the other
side.  Unless you can find out the why there may be no magic bullet (kill
-9) way of making it die.  You could reboot to get rid of it but if it's not
doing any harm you could equally just life it lieng around.

This isn't strictly speaking what a D state process means but when it's
unkillable it's a better than fair bet that this is where things are at.

M.



> Cheers,
>
> James
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2583
Queensland, Australia.                            pgp key id: 0x900E515F




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to