[Asterisk-Users] asterisk startup
tim panton
tpanton at attglobal.net
Sun Nov 20 12:31:14 MST 2005
On 20 Nov 2005, at 18:58, Rich Adamson wrote:
>
>>> I guess it must be a 2.6 kernel stuff since on 2.4 it only makes 1
>>> instance but on my 2.6 boxes, it makes about 10.
>>
>> I always wondered about this and never got a clear answer. On CentOS
>> 4, Fedora 3 and RHES 4 (all 2.6 kernels) it only shows up as one
>> instance, even with several concurrent calls...
>
> Uhm......
>
> Fedora 3... no calls in progress... cvs-head...
>
> [root at phoenix asterisk]# ps ax
> PID TTY STAT TIME COMMAND
> 1786 ? S 0:00 /bin/sh /usr/sbin/safe_asterisk
> 1832 ? S 0:00 asterisk -vvvgn -cn
> 1864 ? S 0:00 asterisk -vvvgn -cn
> 1866 ? S 0:00 asterisk -vvvgn -cn
> 1867 ? S 0:00 asterisk -vvvgn -cn
> 1868 ? S 0:00 asterisk -vvvgn -cn
> 1869 ? S 0:00 asterisk -vvvgn -cn
> 1873 ? S 0:35 asterisk -vvvgn -cn
> 1891 ? S 0:00 asterisk -vvvgn -cn
> 1892 ? S 0:00 asterisk -vvvgn -cn
> 1893 ? S 0:11 asterisk -vvvgn -cn
> 1894 ? S 0:00 asterisk -vvvgn -cn
> 1895 ? S 0:00 asterisk -vvvgn -cn
> 1927 ? S 3:11 asterisk -vvvgn -cn
> 1942 ? S 0:00 asterisk -vvvgn -cn
> 1943 ? S 0:00 asterisk -vvvgn -cn
> 1945 ? S 0:00 asterisk -vvvgn -cn
> 1946 ? S 0:00 asterisk -vvvgn -cn
>
We bumped into this the other day.
The rc.redhat.asterisk script in /usr/src/asterisk/contrib/init.d
sets
LD_ASSUME_KERNEL 2.4.1
Which will make the kernel do old-style process-perthread
posix threads.
If you omit it (or start asterisk from a normal shell) you will get the
newer multiple-threads per process model - and only one line
in the ps output.
I don't know which is recommended.
Both seem to work in our environment, but that's not very busy....
Tim.
More information about the asterisk-users
mailing list