Re: Causes for process going into D state



guru <guru.naveen@xxxxxxxxx> writes:
What are the causes for process going in to D state. (which is
interruptible).

The process is doing an uninterruptible sleep in the kernel. The most
common cause of this is that it is waiting for a disk I/O-request to
complete.

in my program i am using down(struct semaphore *) function which
places process to uninterruptible state. so I am seeing Process in D
state.

You could use down_interruptible instead, although that likely
wouldn't solve your problem.
.



Relevant Pages

  • Re: Weird high load on server
    ... Then it's probably not a problem of waiting for IO. ... PROCESS STATE CODES ... Here are the different values that the s, stat and state output specifiers ... D Uninterruptible sleep ...
    (Fedora)
  • Re: How do I kill Mozilla?
    ... Your process is in an uninterruptible sleep. ... Instead it's waiting for something, ... file system was corrupted for some reason. ... I suggest you reboot and ...
    (alt.os.linux)