[Kamailio-Devel] [ openser-Bugs-2050115 ] pkg memory management
SourceForge.net
noreply at sourceforge.net
Fri Sep 12 12:16:43 CEST 2008
Bugs item #2050115, was opened at 2008-08-13 19:17
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2050115&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Antanas Masevicius (zoltran)
Assigned to: Nobody/Anonymous (nobody)
Summary: pkg memory management
Initial Comment:
performing contact dumps from in memory with such commands as:
# openserctl ul show
or
# openserctl online
produces error:
> Aug 11 17:25:06 test /usr/sbin/openser[15267]: DBG:mi_fifo:mi_parse_node:
end of input tree
> Aug 11 17:25:06 test /usr/sbin/openser[15267]:
DBG:mi_fifo:mi_fifo_server: done parsing the mi tree
> Aug 11 17:25:06 test /usr/sbin/openser[15267]: ERROR:core:add_mi_attr: no
more pkg mem (24)
> Aug 11 17:25:06 test /usr/sbin/openser[15267]:
ERROR:mi_fifo:mi_fifo_server: command (ul_dump) processing failed
this comes out after 20 days of openser-1.3.2 operation with couple of
thausands of contacts.
--
Antanas Masevicius
email: antanas.masevicius at ntt.lt
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-09-12 10:16
Message:
Hi henningw,
still monitoring situation. I was still not able to recompile with that
flag, because of production system uptime requiremts, but im still planning
to do that. I'll post results as soon as i will be able to determine
outcome.
Antanas
NTT
----------------------------------------------------------------------
Comment By: Henning Westerholt (henningw)
Date: 2008-09-12 09:24
Message:
Hi Antanas,
any updates on this? Thanks,
Henning
----------------------------------------------------------------------
Comment By: Henning Westerholt (henningw)
Date: 2008-09-02 15:12
Message:
Logged In: YES
user_id=337916
Originator: NO
Hi Antanas,
any updates for this bug, does the recompile with the QM_JOIN_FREE helped
you?
BTW, If you're really adventurous (and have a good QA process) then you
could also try to recompile without PKG_MALLOC defined. The server will
then be use the system malloc instead of the fixed size pool (you need to
use a recent branch for this, i did a fix for this case). Performance will
probably be somewhat worse, but you if you then still problems with
fragmentation, you need to blame the linux kernel/ glibc. :-)
Henning
----------------------------------------------------------------------
Comment By: Daniel-Constantin Mierla (miconda)
Date: 2008-08-14 06:47
Message:
Logged In: YES
user_id=1246013
Originator: NO
Try compile with -DQM_JOIN_FREE and see if you run in same situation. You
can add that define in Makefile.defs, there is a section where the defines
are listed.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-08-14 06:39
Message:
Logged In: NO
hello miconda,
i've been running "openserctl online | wc" pretty frequently. Lets say
from 50 to 100 times in that pediod.
--
Antanas Masevicius
email: antanas.masevicius at ntt.lt
----------------------------------------------------------------------
Comment By: Henning Westerholt (henningw)
Date: 2008-08-13 22:26
Message:
Logged In: YES
user_id=337916
Originator: NO
Hi,
if i remember correctly, Dan also reported this problem some times ago on
the devel list. Perhaps we really should investigate to get rid of this
pkg_mem pool, and replace it with plain malloc..
In the meantime its probably possible to work around/ delay this problem
by increasing the pkg memory pool size, or i'm wrong?
Henning
----------------------------------------------------------------------
Comment By: Daniel-Constantin Mierla (miconda)
Date: 2008-08-13 21:46
Message:
Logged In: YES
user_id=1246013
Originator: NO
this might be memory fragmentation. How many times you run openserctl ul
show in this period?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2050115&group_id=139143
More information about the Devel
mailing list