[Asterisk-Dev] Number of Asterisk process

Velimir Novkovic vn at comx.dk
Sat Jan 15 07:29:51 MST 2005


Thanks for the answers.
I have overlooked -m option.
Eric, I agree - next time first I'll go to users group with similar
topic/question.

/Vel

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Eric
Sent: Friday, January 14, 2005 10:31 PM
To: Asterisk Developers Mailing List
Subject: Re: [Asterisk-Dev] Number of Asterisk process

Brian,

Ultimately, yes, it is, but I've categorized "old ps" with linuxthreads
and "new ps" with NPTL to make it way more simple.  :)

More specifically, since you've called me out on it, older versions of
ps didn't show threads, because (someone correct me if I'm not entirely
accurate), they just couldn't tell what was a thread based on the
linuxthreads library.  From what I understand, it may have been a thread,
but it was a process in it's own right because it had it's own process
identifier, description, etc.

NPTL implements threads differently and, accordingly, newer software can
now identify a thread.

It's intresting to note that ps on an old RH6.2 box I have (linuxthreads)
gives the error "ERROR: Thread display not implemented." when run with the
-m option to show threads.


- Eric



On Fri, 14 Jan 2005 14:53:30 -0600
"Brian West" <brian at bkw.org> wrote:

> Isn't this linux threads vs nptl ? 
> 
> bkw
> 
> > -----Original Message-----
> > From: asterisk-dev-bounces at lists.digium.com [mailto:asterisk-dev-
> > bounces at lists.digium.com] On Behalf Of Eric
> > Sent: Friday, January 14, 2005 2:40 PM
> > To: Asterisk Developers Mailing List
> > Subject: Re: [Asterisk-Dev] Number of Asterisk process
> > 
> > Hi Velimir,
> > 
> > Asterisk is a threaded process.  Some older versions of 'ps' and 'top'
> > are not thread aware and will display all of the threads as individual
> > processes (the kernel kind of treats them as individual, even though
> > they use the same memory space).  Newer versions of 'ps' and 'top'
> > will show only the parent thread (unless you've specified an option to
> > display all threads).
> > 
> > 
> > I must also note, questions of this nature should be posted to the
> > -users list.  This list is devoted to development of asterisk source
> > code.
> > 
> > 
> > - Eric
> > 
> > 
> > 
> > 
> > 
> > On Fri, 14 Jan 2005 21:18:33 +0100
> > "Velimir Novkovic" <vn at comx.dk> wrote:
> > 
> > > Just noticed that 'ps' shows different numbers of processes on my
> > different
> > > Asterisk installations. Sometimes it is only one, apart form the
> > console,
> > > and other times it is more then 10. Observations were made on idle,
i.e.
> > no
> > > active calls/channels, system.
> > >
> > > Can anyone shed some light on it? Thanks.
> > >
> > >
> > >
> > > ~Vel
> > >
> > >
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list