[OpenSIPS-Users] OpenSIPS maximum performance in a multiprocessor machine (SMP)

Adrian Georgescu ag at ag-projects.com
Wed Sep 16 16:32:04 CEST 2009


Hi Italo,

Just out of curiosity. How much is enough for you as scalability goes?  
Doing 20K cps will yield how many established sessions in 3 minutes  
time? More simultaneous calls then all traffic generated by a whole  
country?

--
Adrian





On Sep 16, 2009, at 10:19 AM, Italo Dacosta wrote:

>
> Sau'l Ibarra wrote:
>> Yo may also install irqbalance, so that interrupts get balanced  
>> across
>> all the cores.
>
> Saul: thanks for the suggestion. I installed irqbalance in the proxy.
> However, I couldn't see any performance improvement. The only thing I
> noticed is that now most of the irqs are handled by CPU 0 instead of  
> CPU
> 7. My guess is that most of the interrupts are being generated by the
> network card. Because there is only one network card, irqbalance can  
> not
> distribute the irqs among the CPUs. It seems that irqbalance has not a
> configuration file that I could modify to try to balance irqs in this
> scenario.
>
> Bogdan-Andrei Iancu wrote:
>> Note that usrloc has data structures that are shared between all  
>> procs.
>> Sharing means locking for synchronized access. By default usrloc  
>> uses a
>> hash with 512 entries, each entry having its one lock.
>> Typically access to such shared data may be a bottleneck - procs
>> blocking in lock trying to access some resource. So, to increase the
>> level of parallelism and hash entry collisions, you could try  
>> increase
>> the size of this hash table:
>>       http://www.opensips.org/html/docs/modules/devel/usrloc.html#id271533
>> Try a value of 12 for example.
>
> Bogdan: thanks for your suggestions and the information provided. I
> changed the usrloc hash table size to 12 but I didn't notice any  
> changes
> in the proxy's performance. I am using a small number of callees  
> (around
> 16), so I don't think that this operation is causing the performance
> bottleneck.
>
> My next step is to profile OpenSIPS with oprofile. Any other  
> suggestions
> are welcome.
>
> Thanks,
> ID
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list