question for a column of ps reporting
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > question for a column of ps reporting




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    question for a column of ps reporting  
Alex Shi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-04 07:48 AM

Hi,

What does WCHAN mean in ps reporting? In this column, what does
"schedu" mean? Why a process is set to "schedu" or just "-"?

Alex





[ Post a follow-up to this message ]



    Re: question for a column of ps reporting  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-04 10:58 PM

Alex Shi wrote:
>
> What does WCHAN mean in ps reporting? In this column, what does
> "schedu" mean? Why a process is set to "schedu" or just "-"?

Did you try reading the man page?  Here's the exerpt from AIX:

WCHAN
(-l flag) The event for which the process or kernel thread is waiting or
sleeping. For a kernel thread, this field is blank if the kernel thread is
running. For a process, the wait channel is defined as the wait channel of t
he
sleeping kernel thread if only one kernel thread is sleeping; otherwise a st
ar
is displayed.

WCHAN
(l flag) The event on which process is waiting (an address in the system). A
symbol is chosen that classifies the address, unless numerical output is
requested.

So it's what the thread is waiting for.  Looks like you chose the
option to classify the address to get "schedu".  Your vendor's
man page should define that but my best guess is it means the
thread is runable and waiting to get scheduled some runtime.





[ Post a follow-up to this message ]



    Re: question for a column of ps reporting  
John DuBois


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:04 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register