[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: uninterruptible sleep processes



On Mon, Jun 18, 2001 at 07:03:18PM +0200, Joost Kooij wrote:
> (This is not really a debian-devel question I think.)
> 
> On Sun, Jun 17, 2001 at 07:04:22AM +0200, PiotR wrote:
> > Lately my mysqld deamons are falling into process status "D" (uninterruptible sleep). 
> > Is there a way to kill those processes?
> 
> Not in any sensible way.  Your "D" processes are waiting in the kernel
> while blocked for io.  When you "kill" a process, you are really sending
> that process a signal.  But while a process is in uninterruptible sleep,
> it can not process any received signals until it wakes up from sleep.
> 
> IIRC this is intended and documented behaviour of the unix api.
> 
> You should check what files or descriptors the state "D" processes are
> blocking on (try attaching "strace".)  If your process is trying to read
> from a file on a nfs mounted filesystem, but the nfs is down (or just the
> network to it), you have to either wait for the server to come up again,
> reboot your system and next time use "soft mount" flags when mounting
> the nfs share onto your system.

Thanks.
I've liked your explanation. I will upgrade the kernel though.

Regards.
> Cheers,
> 
> 
> Joost
> 
-- 
 ... ___________________________________________________________ ...
|   /|                                                         |\   | 
|  /-| Pedro Larroy Tovar. PiotR | http://omega.resa.es/piotr/ |-\  |
o-|--| e-mail: piotr@omega.resa.es | piotr@logiccontrol.es     |--|-o 
|  \-| finger piotr@omega.resa.es for public gnupg key         |-/  | 
|...\|_________________________________________________________|/...| 
:wq



Reply to: