<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Alexander,<br>
    <br>
    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.<br>
    <br>
    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 ?<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 11/9/23 4:32 PM, Alexander Kogan
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d218641c-07e4-4ba8-9f9b-2ef5845de757@5gfuture.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>I've tried all of them - Q, F, and HP with the same result. <br>
      </p>
      <pre class="moz-signature" cols="72">Best regards,
Alexander Kogan,
Director of R&D317724640
5g Future
<a class="moz-txt-link-freetext" href="http://5gfuture.com" moz-do-not-send="true">http://5gfuture.com</a>


</pre>
      <div class="moz-cite-prefix">On 09.11.2023 18:24, solarmon wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAOXfywP2J5mQwgciwVUvAhJJM6=+Vqf2Q=axD5zn4GLnyif3NQ@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">What memory management and allocator are you
          using?
          <div><br>
          </div>
          <div>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.</div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, 9 Nov 2023 at 12:33,
            Alexander Kogan <<a href="mailto:akogan@5gfuture.com"
              moz-do-not-send="true" class="moz-txt-link-freetext">akogan@5gfuture.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">Hi,<br>
            <br>
            of course I did. It doesn't help.<br>
            <br>
            Best regards,<br>
            Alexander Kogan,<br>
            Director of R&D<br>
            5g Future<br>
            <a href="http://5gfuture.com" rel="noreferrer"
              target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">http://5gfuture.com</a><br>
            <br>
            <br>
            On 09.11.2023 16:03, Marcin Groszek wrote:<br>
            > You may try adding more pgk memory in<br>
            ><br>
            > /etc/sysconfig/opensips i.e.<br>
            ><br>
            > P_MEMORY=256<br>
            ><br>
            ><br>
            > On 11/9/2023 5:07 AM, Alexander Kogan wrote:<br>
            >> Hello all,<br>
            >><br>
            >> I regularly get a memory error after upgrading to
            3.2.14 and 3.2.15 <br>
            >> builds.<br>
            >><br>
            >> Nov  9 11:53:02 FI173 /usr/sbin/opensips[3243]: <br>
            >> WARNING:core:fm_malloc: not enough contiguous free
            pkg memory <br>
            >> (317724640 bytes left, need 33832), attempting
            defragmentation... <br>
            >> please increase the "-M" command line parameter!<br>
            >> Nov  9 11:53:02 FI173 /usr/sbin/opensips[3243]:
            ERROR:core:fm_malloc: <br>
            >> not enough free pkg memory (317724640 bytes left,
            need 33832), please <br>
            >> increase the "-M" command line parameter!<br>
            >> Nov  9 11:53:02 FI173 /usr/sbin/opensips[3243]: <br>
            >> ERROR:core:receive_msg: no pkg mem left for sip_msg<br>
            >><br>
            >> Surprisingly, it happens only with one or two UDP
            workers of 15 or <br>
            >> more. I've already created issue <br>
            >> <a
              href="https://github.com/OpenSIPS/opensips/issues/3235"
              rel="noreferrer" target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://github.com/OpenSIPS/opensips/issues/3235</a>
            and I'm waiting for it.<br>
            >><br>
            >> Meanwhile, I'm looking for a way of restarting
            particular opensips <br>
            >> process. Is it possible?<br>
            >><br>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opensips.org" target="_blank"
              moz-do-not-send="true" class="moz-txt-link-freetext">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
          </blockquote>
        </div>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>