Changes between Version 1 and Version 2 of Ticket #249


Ignore:
Timestamp:
May 2, 2007 9:22:43 PM (17 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #249 – Description

    v1 v2  
    1 Default block size of 4000 bytes is causing problem in Symbian. Here's the settings that work: 
     1Symbian looks to having troubles when there are too many big blocks allocated by application, and unfortunately PJ likes to allocate memory in big blocks (4000 bytes or so) for the pool. 
    22 
    3 {{{ 
    4  
    5 #define PJSIP_POOL_LEN_ENDPT   1000 
    6 #define PJSIP_POOL_INC_ENDPT   1000 
    7  
    8 #define PJSIP_POOL_RDATA_LEN   2000 
    9 #define PJSIP_POOL_RDATA_INC   2000 
    10  
    11 #define PJSIP_POOL_LEN_TDATA  2000 
    12 #define PJSIP_POOL_INC_TDATA  512 
    13  
    14 #define PJSIP_POOL_LEN_UA     2000 
    15 #define PJSIP_POOL_INC_UA     1000 
    16  
    17 /* Pool for transaction layer (dump shows 228 bytes). */ 
    18 #define PJSIP_POOL_TSX_LAYER_LEN 256 
    19 #define PJSIP_POOL_TSX_LAYER_INC 256 
    20  
    21 /* Pool for transaction. The dump shows 468 bytes */ 
    22 #define PJSIP_POOL_TSX_LEN   512 
    23 #define PJSIP_POOL_TSX_INC   128  
    24 }}} 
     3The solution is to have the block size configurable during compile time.