I am having the same issue on version 4.0.4


From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Uri Shacked
Sent: Thursday, December 5, 2013 9:30 AM
To: Daniel-Constantin Mierla
Cc: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List
Subject: Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1


The version is 3.3.2 a91b2b-dirty


The cpmmand output is:


shmem:fragments = 433

shmem:free_size = 2595411760

shmem:max_used_size = 2358563728

shmem:real_used_size = 1699555536

shmem:total_size = 4294967296

shmem:used_size = 1359869056




On Wed, Dec 4, 2013 at 10:04 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:

To refresh, what is the version you are using now? Looking at old messages in this thread is about 3.3.2, but memjoin was not there, iirc.

Can you give the output for next command?

kamctl mi get_statistics shmem:

You can walk the shared memory chunks with gdb, but it may take quite a while and not sure how useful will be.



On 12/4/13 8:29 PM, Uri Shacked wrote:

Any ideas?


On Tue, Nov 26, 2013 at 9:38 AM, Uri Shacked <ushacked@gmail.com> wrote:

mem_join=1 on cfg.

MEMDBG=0 on makefile.def


On Mon, Nov 25, 2013 at 10:40 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:


are you still using mem_join=1?



On 11/24/13 10:01 AM, Uri Shacked wrote:


It has been a while.

Still, I have some problems with reloading data into shared memory.

I can obviously notice that there is always an increase of shmem after each reload.


When my system starts, it has 4G of memory reserved and approximately 0.8G is populated at start.


After 30 days, when reloading 15-25 times per day only part of the 0.8G, the shmem size is approximately 3.5G.


As I mentioned before, the traffic does not seems to be the issue. How do I, or can I, check the size of memory occupied by traffic only?


Any ideas how to handle the reloads?


I am using kamailio 3.3.2 with modules like ACC, DIALOG, CARRIERROUTE and more….







On Sun, Mar 3, 2013 at 7:36 PM, Uri Shacked <ushacked@gmail.com> wrote:


I have this memory issue again.

The status now is that I compiled kamailio as followed here and use mem_join=1.

I reload my data from DB every minute! I know i reload a lot, will take care of that (will update you all on April :-)).

When kamailio starts the shmem is about 17% of 4Gb and after 7 days (600 reloads per day) the shmem is about 24%.

The traffic is not the issue.

Still, can defrag of memory improve? Ideas for defrag?




On Tue, Nov 27, 2012 at 12:37 PM, Uri Shacked <ushacked@gmail.com> wrote:


>>ok - it's 56sec or 36sec?

It was 56 sec.


Now, after recompile, when cfg mem_join=0 the reload takes 8 sec and the shmem real used is 25% of 4Gb.

When mem_join=, the reload take 30 sec and the shmem real used is 17%.



Looks good with mem_join=1.








Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda