07-21-04 10:58 PM
In article <tZlLc.10276$OD2.4249@nntp-post.primus.ca>,
Alex Shi <chpshi@stonix.com> wrote:
>What does WCHAN mean in ps reporting?
That's the "wait channel". When a process requests some service from the
kernel that can't be satisfied immediately (for example, input from a tty, a
block from some file that must be read from disk, or even an explicit reques
t
to sleep for a while), it is put to sleep. Whatever puts the process to sle
ep
(a driver or some other part of the kernel) selects an address to use as a
"tag" for the event that will eventually wake it up. When the event occurs,
any processes waiting on that address will be waked up.
> In this column, what does "schedu" mean? Why a process is set to "schedu"
> or just "-"?
If there's no wait channel, the process is in some state other than waiting
on
an event at its own request. It might be running, suspended, in the process
of
being created or destroyed, waiting for blocks of its executable to be paged
in, running under a debugger, etc.
John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
[ Post a follow-up to this message ]
|