[OpenSIPS-Users] pkmem free_size larger than total_size

Jeff Pyle jpyle at fidelityvoice.com
Mon Nov 26 20:29:26 CET 2012


Hello,

On Opensips 1.7 build 9142 (July 6 this year), I have encountered an
interesting problem.  First, we see errors like this:

WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation
ERROR:core:build_res_buf_from_sip_res: out of pkg mem
ERROR:tm:relay_reply: no mem for outbound reply buffer
WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation
ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 347

Various modules fail in various ways because of memory problems.  The
statistics show something very interesting:

pkmem:0-total_size = 2097152
pkmem:0-used_size = 75796
pkmem:0-real_used_size = 99612
pkmem:0-max_used_size = 101384
pkmem:0-free_size = 1997540
pkmem:0-fragments = 6
pkmem:1-total_size = 2097152
pkmem:1-used_size = 102216
pkmem:1-real_used_size = 127448
pkmem:1-max_used_size = 130864
pkmem:1-free_size = 1969704
pkmem:1-fragments = 60
pkmem:2-total_size = 2097152
pkmem:2-used_size = 2053012
pkmem:2-real_used_size = 2147376
pkmem:2-max_used_size = 2154380
pkmem:2-free_size = *4294917072*
pkmem:2-fragments = 20
pkmem:3-total_size = 2097152
pkmem:3-used_size = 2093180
pkmem:3-real_used_size = 2189356
pkmem:3-max_used_size = 2193028
pkmem:3-free_size = *4294875092*
pkmem:3-fragments = 20
... and on through pkmem:8.

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?


- Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121126/fe283077/attachment-0001.htm>


More information about the Users mailing list