- Timestamp:
- Jul 13, 2008 1:12:36 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r2039 r2131 158 158 /** 159 159 * Specify maximum transaction count in transaction hash table. 160 * Default value is 16*1024 160 * For efficiency, the value should be 2^n-1 since it will be 161 * rounded up to 2^n. 162 * 163 * Default value is 1023 161 164 */ 162 165 #ifndef PJSIP_MAX_TSX_COUNT 163 # define PJSIP_MAX_TSX_COUNT (1 6*1024)166 # define PJSIP_MAX_TSX_COUNT (1024-1) 164 167 #endif 165 168 166 169 /** 167 170 * Specify maximum number of dialogs in the dialog hash table. 168 * Default value is 16*1024. 171 * For efficiency, the value should be 2^n-1 since it will be 172 * rounded up to 2^n. 173 * 174 * Default value is 511. 169 175 */ 170 176 #ifndef PJSIP_MAX_DIALOG_COUNT 171 # define PJSIP_MAX_DIALOG_COUNT ( 16*1024)177 # define PJSIP_MAX_DIALOG_COUNT (512-1) 172 178 #endif 173 179 … … 554 560 */ 555 561 #ifndef PJSIP_POOL_LEN_UA 556 # define PJSIP_POOL_LEN_UA 4000562 # define PJSIP_POOL_LEN_UA 512 557 563 #endif 558 564 … … 561 567 */ 562 568 #ifndef PJSIP_POOL_INC_UA 563 # define PJSIP_POOL_INC_UA 4000569 # define PJSIP_POOL_INC_UA 512 564 570 #endif 565 571 … … 572 578 573 579 /** 574 * Initial memory size for transaction layer 580 * Initial memory size for transaction layer. The bulk of pool usage 581 * for transaction layer will be used to create the hash table, so 582 * setting this value too high will not help too much with reducing 583 * fragmentation and the memory will most likely be wasted. 575 584 */ 576 585 #ifndef PJSIP_POOL_TSX_LAYER_LEN 577 # define PJSIP_POOL_TSX_LAYER_LEN 4000 578 #endif 579 580 /** 581 * Memory increment for transaction layer. 586 # define PJSIP_POOL_TSX_LAYER_LEN 512 587 #endif 588 589 /** 590 * Memory increment for transaction layer. The bulk of pool usage 591 * for transaction layer will be used to create the hash table, so 592 * setting this value too high will not help too much with reducing 593 * fragmentation and the memory will most likely be wasted. 582 594 */ 583 595 #ifndef PJSIP_POOL_TSX_LAYER_INC 584 # define PJSIP_POOL_TSX_LAYER_INC 4000596 # define PJSIP_POOL_TSX_LAYER_INC 512 585 597 #endif 586 598 -
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r2039 r2131 297 297 298 298 /* Create pool: */ 299 mod_evsub.pool = pjsip_endpt_create_pool(endpt, "evsub", 4000, 4000);299 mod_evsub.pool = pjsip_endpt_create_pool(endpt, "evsub", 512, 512); 300 300 if (!mod_evsub.pool) 301 301 return PJ_ENOMEM; -
pjproject/trunk/pjsip/src/pjsip-simple/publishc.c
r2108 r2131 120 120 1, &pjsip_publish_method.name); 121 121 */ 122 PJ_UNUSED_ARG(endpt); 122 123 return PJ_SUCCESS; 123 124 } -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r2039 r2131 37 37 38 38 #define MAX_ASYNC_CNT 16 39 #define POOL_LIS_INIT 400040 #define POOL_LIS_INC 400141 #define POOL_TP_INIT 400042 #define POOL_TP_INC 400239 #define POOL_LIS_INIT 512 40 #define POOL_LIS_INC 512 41 #define POOL_TP_INIT 512 42 #define POOL_TP_INC 512 43 43 44 44 struct tcp_listener; -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls_ossl.c
r2094 r2131 67 67 68 68 #define MAX_ASYNC_CNT 16 69 #define POOL_LIS_INIT 400070 #define POOL_LIS_INC 400171 #define POOL_TP_INIT 400072 #define POOL_TP_INC 400269 #define POOL_LIS_INIT 512 70 #define POOL_LIS_INC 512 71 #define POOL_TP_INIT 512 72 #define POOL_TP_INC 512 73 73 74 74
Note: See TracChangeset
for help on using the changeset viewer.