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

Re: uninterruptible sleep processes



(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.

> Anyone is having the same problem?
> I'm running 2.4.3 Linux kernel with potato and mysql-server   3.22.32-6

Judging from what you told me, it could be anything. :-)

Cheers,


Joost



Reply to: