process wait channel (WCHAN) and alarm?

process wait channel (WCHAN) and alarm?

am 03.06.2003 13:22:17 von Herta Van den Eynde

Where can I find the meaning of the different channels a process can be
waiting in? And what do the alarm values represent?
(Rightmost colums in 'ps -eo pid,user,cmd,alarm,wchan')

Hert

--
Herta Van den Eynde -=- Toledo system management
K.U. Leuven - Ludit -=- phone: +32 (0)16 322 166

"For something fulfilled this hour, loved or endured."
(W.H. Auden)


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: process wait channel (WCHAN) and alarm?

am 03.06.2003 13:43:37 von Glynn Clements

Herta Van den Eynde wrote:

> Where can I find the meaning of the different channels a process can be
> waiting in?

The WCHAN value is the name of the kernel function in which the
process is currently blocked.

> And what do the alarm values represent?

The delay (in seconds) of an outstanding timer, as set by alarm() or
setitimer().

--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: process wait channel (WCHAN) and alarm?

am 03.06.2003 13:59:47 von Herta Van den Eynde

Fine. I can see how alarm works.

Can you give me more details on how to find out what kernel functions
such as rt_sigsuspend, pause, ... imply?

Herta

Glynn Clements wrote:

>Herta Van den Eynde wrote:
>
>
>
>>Where can I find the meaning of the different channels a process can be
>>waiting in?
>>
>>
>
>The WCHAN value is the name of the kernel function in which the
>process is currently blocked.
>
>
>
>>And what do the alarm values represent?
>>
>>
>
>The delay (in seconds) of an outstanding timer, as set by alarm() or
>setitimer().
>
>
>

--
Herta Van den Eynde -=- Toledo system management
K.U. Leuven - Ludit -=- phone: +32 (0)16 322 166

"For something fulfilled this hour, loved or endured."
(W.H. Auden)



-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: process wait channel (WCHAN) and alarm?

am 03.06.2003 14:15:57 von Glynn Clements

Herta Van den Eynde wrote:

> Fine. I can see how alarm works.
>
> Can you give me more details on how to find out what kernel functions
> such as rt_sigsuspend, pause, ... imply?

In many cases, the name is related to a system call, which will have a
manual page (in section 2). E.g. rt_sigsuspend suggests the
sigsuspend() system call; "man 2 sigsuspend" says (amongst other
things):

int sigsuspend(const sigset_t *mask);

...

The sigsuspend call temporarily replaces the signal mask
for the process with that given by mask and then suspends
the process until a signal is received.

Similarly, do_select() is related to select() etc.

In other cases, you might have to refer to the kernel's source code to
determine the nature of a function.

--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html