[OpenSIPS-Users] Not enough free pkg memory

Alexander Kogan akogan at 5gfuture.com
Tue Nov 14 08:01:15 UTC 2023


Hi,

The process is one of the UDP workers actually. You can see that error 
occurred in receive_msg: ERROR:core:receive_msg: no pkg mem left for 
sip_msg. I also checked that with MI 'ps' command. Usually I got it from 
the single process.

Best regards,
Alexander Kogan,
Director of R&D
5g Future
http://5gfuture.com


On 13.11.2023 11:50, Bogdan-Andrei Iancu wrote:
> Hi Alexander,
>
> The warning is actually reporting a highly fragmented memory and not a 
> lack of memory. It reports 303 available Mb, but not a single 
> continuous slot for like 33K.
>
> By doing an MI "ps", could you identify the name/type of the process 
> reporting this issue ? do you get it from a single process or from 
> multiple processes ?
>
> Regards,
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>    https://www.opensips-solutions.com
>    https://www.siphub.com
> On 11/9/23 4:32 PM, Alexander Kogan wrote:
>>
>> I've tried all of them - Q, F, and HP with the same result.
>>
>> Best regards,
>> Alexander Kogan,
>> Director of R&D317724640
>> 5g Future
>> http://5gfuture.com
>>
>>
>> On 09.11.2023 18:24, solarmon wrote:
>>> What memory management and allocator are you using?
>>>
>>> I had similar issues using opensips 3.2.7 and the quick workaround 
>>> was to change from F_MALLOC to HP_MALLOC. But I thought there should 
>>> have been fixes for such issues in newer versions, so your issue 
>>> might be different.
>>>
>>> On Thu, 9 Nov 2023 at 12:33, Alexander Kogan <akogan at 5gfuture.com> 
>>> wrote:
>>>
>>>     Hi,
>>>
>>>     of course I did. It doesn't help.
>>>
>>>     Best regards,
>>>     Alexander Kogan,
>>>     Director of R&D
>>>     5g Future
>>>     http://5gfuture.com
>>>
>>>
>>>     On 09.11.2023 16:03, Marcin Groszek wrote:
>>>     > You may try adding more pgk memory in
>>>     >
>>>     > /etc/sysconfig/opensips i.e.
>>>     >
>>>     > P_MEMORY=256
>>>     >
>>>     >
>>>     > On 11/9/2023 5:07 AM, Alexander Kogan wrote:
>>>     >> Hello all,
>>>     >>
>>>     >> I regularly get a memory error after upgrading to 3.2.14 and
>>>     3.2.15
>>>     >> builds.
>>>     >>
>>>     >> Nov  9 11:53:02 FI173 /usr/sbin/opensips[3243]:
>>>     >> WARNING:core:fm_malloc: not enough contiguous free pkg memory
>>>     >> (317724640 bytes left, need 33832), attempting
>>>     defragmentation...
>>>     >> please increase the "-M" command line parameter!
>>>     >> Nov  9 11:53:02 FI173 /usr/sbin/opensips[3243]:
>>>     ERROR:core:fm_malloc:
>>>     >> not enough free pkg memory (317724640 bytes left, need
>>>     33832), please
>>>     >> increase the "-M" command line parameter!
>>>     >> Nov  9 11:53:02 FI173 /usr/sbin/opensips[3243]:
>>>     >> ERROR:core:receive_msg: no pkg mem left for sip_msg
>>>     >>
>>>     >> Surprisingly, it happens only with one or two UDP workers of
>>>     15 or
>>>     >> more. I've already created issue
>>>     >> https://github.com/OpenSIPS/opensips/issues/3235 and I'm
>>>     waiting for it.
>>>     >>
>>>     >> Meanwhile, I'm looking for a way of restarting particular
>>>     opensips
>>>     >> process. Is it possible?
>>>     >>
>>>
>>>     _______________________________________________
>>>     Users mailing list
>>>     Users at lists.opensips.org
>>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20231114/85d38525/attachment.html>


More information about the Users mailing list