<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=FR link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>I Liviu and thanks for the fast reply,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>However, we don’t use t_on_branch on our script, install the nightly packages, can you still help?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Thanks</span><span style='mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:12.0pt;color:black'>De : </span></b><span style='font-size:12.0pt;color:black'>Devel <devel-bounces@lists.opensips.org> au nom de Liviu Chircu <liviu@opensips.org><br><b>Répondre à : </b>OpenSIPS devel mailling list <devel@lists.opensips.org><br><b>Date : </b>jeudi 28 janvier 2021 à 14:22<br><b>À : </b>OpenSIPS devel mailling list <devel@lists.opensips.org><br><b>Objet : </b>Re: [OpenSIPS-Devel] not enough free pkg memory<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>On 28.01.2021 15:12, Alain Bieuzent wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Since we migrate from opensips 3,0 to the latest 3.1, after around 1 week of uptime we find a a certain number of message in logs (around 15,000 per day) like « ERROR:core:fm_malloc: not enough free pkg memory (11184320 bytes left, need 536), please increase the "-M" command line parameter! »</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>We already increased P_MEMORY (from 16 to 32 then 32 to 128) but it didn’t help.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>root@lbsip-owf-out02  /var/log  opensips -V</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>version: opensips 3.1.1 (x86_64/linux)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>poll method support: poll, epoll, sigio_rt, select.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>git revision: 229ec0793</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>main.c compiled on 17:41:56 Jan  4 2021 with gcc 6.3.0</span><o:p></o:p></p></blockquote><p><tt><span style='font-size:10.0pt'>Hi,</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>There was a significant PKG memory leak fixed on Jan 11th [1], which was related to t_on_branch().  If you are using t_on_branch() in your opensips.cfg, please get the latest 3.1.1 sources, rebuild and your problems should go away.  For this, I suggest either:</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>* installing the 3.1 nightly packages</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt>* fetching the 3.1 sources and rebuilding</tt><br><tt>* wait for the 3.1.2 minor release</tt></span><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>[1]: <a href="https://github.com/OpenSIPS/opensips/commit/c82a625e">https://github.com/OpenSIPS/opensips/commit/c82a625e</a></span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>Cheers,</span></tt><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>Liviu Chircu<o:p></o:p></pre><pre><a href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com">www.opensips-solutions.com</a><o:p></o:p></pre><p class=MsoNormal>_______________________________________________ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel <o:p></o:p></p></div></body></html>