<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Matt,<br>
      <br>
      The utimer is completed, but with some delay. As time as the
      reported delay ("already scheduled <b>301400</b> ms ago") does
      not increase, it is ok, the task ends, but it is slow. The
      tm-utimer task is responsible for performing the TM
      retransmissions, maybe your traffic is pron to something like
      that.<br>
      <br>
      Regards,<br>
    </font>
    <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 5/18/23 9:08 PM, L S wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPVhdZ92dm-esL_JUzMdmNHVPnQQvg-rOg+u-jN-a47-wtAgEA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto"><span style="font-size:17px">Hi,</span>
        <div dir="auto"><span style="font-size:17px"><br>
          </span></div>
        <div dir="auto"><span style="font-size:17px">I'm trying to find
            out why a utimer task is not complete:</span></div>
        <div dir="auto"><br>
          <span style="font-size:17px">May 17 11:04:19 opensips2
            /usr/local/sbin/opensips[101616]:
            WARNING:core:utimer_ticker: utimer task <tm-utimer>
            already scheduled 301400 ms ago (now 265202840 ms), delaying
            execution</span><br>
          <br>
          <span style="font-size:17px">(opensips.log is showing the
            utimer warning coming from thread 101616)</span><br>
          <br>
          <span style="font-size:17px">The partial trap file is below.
            This is my first time analyzing a trap file, so any help is
            appreciated. I'm trying to find out why utimer task is
            stuck. Some stuff is optimized. Do I need to see them?</span><br>
          <span style="font-size:17px">What should I look for?  </span></div>
        <div dir="auto"><span style="font-size:17px"><br>
          </span></div>
        <div dir="auto"><span style="font-size:17px">Thanks,</span></div>
        <div dir="auto"><span style="font-size:17px"></span><span
            style="font-size:17px">Matt<br>
          </span>
          <br>
          <br>
          <br>
          <span style="font-size:17px">----- partial trap file
            ---------------</span><br>
          <span style="font-size:17px">---start 101612 (root    
            101612      1  0 May14 ?        00:00:00
            /usr/local/sbin/opensips -u root -g root -P
            /var/run/opensips.pid -f
            /usr/local/etc/opensips/opensips.cfg -m 1024 -M 16)</span><br>
          <span style="font-size:17px">[Thread debugging using
            libthread_db enabled]</span><br>
          <span style="font-size:17px">Using host libthread_db library
            "/lib64/libthread_db.so.1".</span><br>
          <span style="font-size:17px">0x00007f1c47012f40 in
            __pause_nocancel () from /lib64/libpthread.so.0</span><br>
          <span style="font-size:17px">#0  0x00007f1c47012f40 in
            __pause_nocancel () from /lib64/libpthread.so.0</span><br>
          <span style="font-size:17px">No symbol table info available.</span><br>
          <span style="font-size:17px">#1  0x000000000041e4fd in
            main_loop () at main.c:304</span><br>
          <span style="font-size:17px">        startup_done =
            <optimized out></span><br>
          <span style="font-size:17px">        chd_rank = 37</span><br>
          <span style="font-size:17px">        last_check = 0</span><br>
          <span style="font-size:17px">        rc = <optimized
            out></span><br>
          <span style="font-size:17px">#2  main (argc=<optimized
            out>, argv=<optimized out>) at main.c:916</span><br>
          <span style="font-size:17px">        c = <optimized out></span><br>
          <span style="font-size:17px">        r = <optimized out></span><br>
          <span style="font-size:17px">        tmp = 0x7fff4814af81 ""</span><br>
          <span style="font-size:17px">        tmp_len = <optimized
            out></span><br>
          <span style="font-size:17px">        port = <optimized
            out></span><br>
          <span style="font-size:17px">        proto = <optimized
            out></span><br>
          <span style="font-size:17px">        protos_no = <optimized
            out></span><br>
          <span style="font-size:17px">        options = 0x683110
            "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"</span><br>
          <span style="font-size:17px">        ret = -1</span><br>
          <span style="font-size:17px">        seed = 3543554664</span><br>
          <span style="font-size:17px">        rfd = <optimized
            out></span><br>
          <span style="font-size:17px">        __FUNCTION__ = "main"</span><br>
          <span style="font-size:17px">[Inferior 1 (process 101612)
            detached]</span>
          <br>
          <br>
          <span style="font-size:17px">.....</span>
          <br>
          <br>
          <span style="font-size:17px">---start 101616 (root     101616
            101612  0 May14 ?        00:05:44 /usr/local/sbin/opensips
            -u root -g root -P /var/run/opensips.pid -f
            /usr/local/etc/opensips/opensips.cfg -m 1024 -M 16)</span><br>
          <span style="font-size:17px">[Thread debugging using
            libthread_db enabled]</span><br>
          <span style="font-size:17px">Using host libthread_db library
            "/lib64/libthread_db.so.1".</span><br>
          <span style="font-size:17px">0x00007f1c46d2bb23 in
            __select_nocancel () from /lib64/libc.so.6</span><br>
          <span style="font-size:17px">#0  0x00007f1c46d2bb23 in
            __select_nocancel () from /lib64/libc.so.6</span><br>
          <span style="font-size:17px">No symbol table info available.</span><br>
          <span style="font-size:17px">#1  0x00000000004cdee8 in
            run_timer_process () at timer.c:503</span><br>
          <span style="font-size:17px">        drift = 0</span><br>
          <span style="font-size:17px">        wait = <optimized
            out></span><br>
          <span style="font-size:17px">        o_tv = <optimized
            out></span><br>
          <span style="font-size:17px">        comp_tv = {tv_sec = 0,
            tv_usec = 100000}</span><br>
          <span style="font-size:17px">        ij = 266131400000</span><br>
          <span style="font-size:17px">        multiple = <optimized
            out></span><br>
          <span style="font-size:17px">        cnt = <optimized
            out></span><br>
          <span style="font-size:17px">        tv = {tv_sec = 0, tv_usec
            = 75286}</span><br>
          <span style="font-size:17px">        uinterval = 100000</span><br>
          <span style="font-size:17px">#2  start_timer_processes () at
            timer.c:633</span><br>
          <span style="font-size:17px">        id = <optimized
            out></span><br>
          <span style="font-size:17px">        __FUNCTION__ =
            "start_timer_processes"</span><br>
          <span style="font-size:17px">#3  0x000000000041df8c in
            main_loop () at main.c:221</span><br>
          <span style="font-size:17px">        startup_done = 0x0</span><br>
          <span style="font-size:17px">        chd_rank = 0</span><br>
          <span style="font-size:17px">        last_check = 0</span><br>
          <span style="font-size:17px">        rc = <optimized
            out></span><br>
          <span style="font-size:17px">#4  main (argc=<optimized
            out>, argv=<optimized out>) at main.c:916</span><br>
          <span style="font-size:17px">        c = <optimized out></span><br>
          <span style="font-size:17px">        r = 0</span><br>
          <span style="font-size:17px">        tmp = 0x7fff4814af81 ""</span><br>
          <span style="font-size:17px">        tmp_len = <optimized
            out></span><br>
          <span style="font-size:17px">        port = <optimized
            out></span><br>
          <span style="font-size:17px">        proto = <optimized
            out></span><br>
          <span style="font-size:17px">        protos_no = <optimized
            out></span><br>
          <span style="font-size:17px">        options = 0x683110
            "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"</span><br>
          <span style="font-size:17px">        ret = -1</span><br>
          <span style="font-size:17px">        seed = 3543554664</span><br>
          <span style="font-size:17px">        rfd = <optimized
            out></span><br>
          <span style="font-size:17px">        __FUNCTION__ = "main"</span><br>
          <span style="font-size:17px">[Inferior 1 (process 101616)
            detached]</span><br>
          <br>
          <br>
          <br>
        </div>
      </div>
      <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>