[asterisk-dev] Re: chan_sip - performance, and OPTIONS poking for 1000s of peers

2006-11-26 Thread Benny Amorsen
> "RM" == Ryan Mitchell <[EMAIL PROTECTED]> writes: RM> int to2 = DEFAULT_FREQ_OK + thread_safe_rand() % 8000 - 4; peer-> pokeexpire = ast_sched_add(sched, to2, sip_poke_peer_s, peer); Would this code get run for each OPTION packet sent? If so, perhaps a less expensive random function cou

[asterisk-dev] chan_sip - performance, and OPTIONS poking for 1000s of peers

2006-11-26 Thread Ryan Mitchell
Hi, I have one system with ~ 3400 peers registered on the box (Asterisk 1.2.10), about 1/2 of which are online at any given time. By far the biggest fraction of work for the SIP stack is in processing REGISTER, NOTIFY, and OPTIONS requests (incoming and outgoing), and not in call processing itself

[asterisk-dev] Re: [asterisk-commits] russell: trunk r48019 - in /trunk/include/asterisk: threadstorage.h utils.h

2006-11-26 Thread Luigi Rizzo
On Sun, Nov 26, 2006 at 06:55:34AM -, [EMAIL PROTECTED] wrote: > Author: russell > Date: Sun Nov 26 00:55:33 2006 > New Revision: 48019 > > URL: http://svn.digium.com/view/asterisk?view=rev&rev=48019 > Log: > - Add some comments on thread storage with a brief explanation of what it is > as w