Hello,
<div><br></div><div>On Opensips 1.7 build 9142 (July 6 this year), I have encountered an interesting problem. First, we see errors like this:</div><div><br></div><div><div>WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation</div>
<div>ERROR:core:build_res_buf_from_sip_res: out of pkg mem</div><div>ERROR:tm:relay_reply: no mem for outbound reply buffer</div><div>WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation</div><div>ERROR:core:build_res_buf_from_sip_req: out of pkg memory ; needs 347</div>
</div><div><br></div><div>Various modules fail in various ways because of memory problems. The statistics show something very interesting:</div><div><br></div><div><div>pkmem:0-total_size = 2097152</div><div>pkmem:0-used_size = 75796</div>
<div>
pkmem:0-real_used_size = 99612</div><div>pkmem:0-max_used_size = 101384</div><div>pkmem:0-free_size = 1997540</div><div>pkmem:0-fragments = 6</div><div>pkmem:1-total_size = 2097152</div><div>pkmem:1-used_size = 102216</div>
<div>pkmem:1-real_used_size = 127448</div><div>pkmem:1-max_used_size = 130864</div><div>pkmem:1-free_size = 1969704</div><div>pkmem:1-fragments = 60</div><div>pkmem:2-total_size = 2097152</div><div>pkmem:2-used_size = 2053012</div>
<div>pkmem:2-real_used_size = 2147376</div><div>pkmem:2-max_used_size = 2154380</div><div>pkmem:2-free_size = <b>4294917072</b></div><div>pkmem:2-fragments = 20</div><div>pkmem:3-total_size = 2097152</div><div>pkmem:3-used_size = 2093180</div>
<div>pkmem:3-real_used_size = 2189356</div><div>pkmem:3-max_used_size = 2193028</div><div>pkmem:3-free_size = <b>4294875092</b></div><div>pkmem:3-fragments = 20</div></div><div>... and on through pkmem:8. </div><div><br>
</div><div>The free_size for processes 2 and 3 is approximately 4 GB, yet only 2 MB total per process. The values for the other processes are okay. Does this look symptomatic of a problem that has already been fixed, or do we need to do more investigation?</div>
<div><br></div><div><br></div><div>- Jeff</div>