[asterisk-dev] Asterisk Performance as a B2BUA

Vadim Lebedev vadim at mbdsys.com
Thu Nov 22 12:30:58 CST 2007


Simon Perreault wrote:
> On Thursday 22 November 2007 12:08:21 Vadim Lebedev wrote:
>   
>>> Another issue is that there is only one thread for handling incoming SIP
>>> requests, so the fact that it is dual core doesn't help.  But, that's not
>>> something that is about to change soon.
>>>       
>> IMO it is not too difficult to change...  Create pool of threads pool
>> waiting on queue.
>>     
>
> Before concluding that more threads would be better, you'd have to prove that 
> the existing one thread uses all its CPU time. Otherwise, the process is 
> I/O-bound, not CPU-bound, and more threads would actually decrease 
> performance a bit.
>
>   
Well generally speaking you're right...
However even if the main sip thread is I/O bound i believe adding more 
thread(s) will improve
perfomance because the actuall SIP processing could be stalled during 
i/o waits in activities
like logging or DB access.

Thanks
Vadim

> Processing SIP should be a piece of cake, I doubt that the CPU is doing any 
> heavy lifting.
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20071122/18c14d1c/attachment.htm 


More information about the asterisk-dev mailing list