<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Ionut,<br>
      <br>
      I would consider increasing the UDP buffers first. Here are the
      default sizes in the 3.2 kernel:<br>
      <br>
      <i>liviu@Workstation:~$ cat /proc/sys/net/ipv4/udp_wmem_*</i><i><br>
        4096<br>
      </i><i><i>liviu@Workstation:~$ </i>cat
        /proc/sys/net/ipv4/udp_rmem_*</i><br>
      <i>4096</i><br>
      <br>
      If you see they are still getting full after setting them to 16MB,
      for example, then you need extra workforce from OpenSIPS.<br>
      <br>
      Best regards,<br>
      <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 12/17/2013 02:45 PM, Ionut Muntean wrote:<br>
    </div>
    <blockquote cite="mid:52B0475B.7090501@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hi,<br>
        <br>
        So if <i>Send-Q</i> and <i>Recv-Q </i>are above 0 for say,
        half a second, that means that the buffers are getting
        constantly full and there is need for more opensips children?<br>
        <br>
        BR,<br>
        Ionut<br>
        <br>
        On 12/17/2013 02:42 PM, Miha wrote:<br>
      </div>
      <blockquote cite="mid:52B046B2.4070604@softnet.si" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        tnx!<br>
        <br>
        see now it is 0.<br>
        <br>
        br,<br>
        miha<br>
        <br>
        <div class="moz-cite-prefix">Dne 12/17/2013 1:40 PM, pi&#353;e Liviu
          Chircu:<br>
        </div>
        <blockquote cite="mid:52B04644.5040500@opensips.org" type="cite">
          <meta http-equiv="Context-Type" content="text/html;
            charset=ISO-8859-1">
          <div class="moz-cite-prefix">You don't see the <i>Send-Q</i>
            and <i>Recv-Q</i> columns?<br>
            <br>
            liviu@Workstation:~$ netstat --version<br>
            net-tools 1.60<br>
            netstat 1.42 (2001-04-15)<br>
            <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
            On 12/17/2013 02:26 PM, Miha wrote:<br>
          </div>
          <blockquote cite="mid:52B042DB.6090908@softnet.si" type="cite">
            Liviu,<br>
            <br>
            just one thing. How can I monitor opensips buffers to see if
            they are getting full?<br>
            <br>
            whith <i>watch -n0.1 'netstat -ulnp </i>I can see on which
            port and protocil opensips is listening.<br>
            <br>
            tnx!<br>
            <br>
            miha
            <div class="moz-cite-prefix">Dne 12/17/2013 12:48 PM, pi&#353;e
              Liviu Chircu:<br>
            </div>
            <blockquote cite="mid:52B03A09.6000400@opensips.org"
              type="cite">
              <div class="moz-cite-prefix">You could monitor the UDP
                receive queue on your interfaces with:<br>
                <br>
                <i>watch -n0.1 'netstat -ulnp'</i><br>
                <br>
                If you constantly see your OpenSIPS listening interface
                buffers getting full, then you need more than 8 SIP
                workers.<br>
                <br>
                Best regards,<br>
                <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
                On 12/17/2013 12:56 PM, Miha wrote:<br>
              </div>
              <blockquote cite="mid:52B02DF6.6080803@softnet.si"
                type="cite"> Liviu,<br>
                <br>
                tnx I am using DB queries, exec commands (this happends
                only for sending mail due to some abuse, very very <span
                  id="result_box" class="short_text" lang="en"><span
                    class="hps">rarely</span></span>), enum lookup,
                radius for accouting, load_balancing,... and CPU has 8
                cors.<br>
                <br>
                I have set number of children to 8. Is there any way to
                determine if this is ok or how will I know? Is it better
                to use 12?<br>
                <br>
                br,<br>
                miha<br>
                <br>
                <br>
                <div class="moz-cite-prefix">Dne 12/17/2013 11:37 AM,
                  pi&#353;e Liviu Chircu:<br>
                </div>
                <blockquote cite="mid:52B02984.2000600@opensips.org"
                  type="cite">
                  <div class="moz-cite-prefix">Hello,<br>
                    <br>
                    There is no simple answer, choosing the appropriate
                    number of children is scenario-dependant.<br>
                    <br>
                    If, for example, you are not performing I/O
                    operations (DB queries, exec commands, etc.), then
                    the number of children should be dictated by the <b>number
                      of cores</b> on your box.<br>
                    <br>
                    On the other side, when your SIP workers will
                    perform lots of disk operations (which are slow),
                    then you should use a lot more children than
                    mentioned above. (e.g. 12, 16 or 20 children).<br>
                    <br>
                    Best regards,<br>
                    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
                    On 12/17/2013 09:56 AM, Miha wrote:<br>
                  </div>
                  <blockquote cite="mid:52B0039B.8070905@softnet.si"
                    type="cite">Hi, <br>
                    <br>
                    how to dermine how many children do I need (default
                    I have 4)? <br>
                    I did not find any appropriate explanation. <br>
                    <br>
                    tnx! <br>
                    <br>
                    miha <br>
                    <br>
                    _______________________________________________ <br>
                    Users mailing list <br>
                    <a moz-do-not-send="true"
                      class="moz-txt-link-abbreviated"
                      href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
                    <br>
                    <a moz-do-not-send="true"
                      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>
                    <br>
                  </blockquote>
                  <br>
                  <br>
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <br>
                  <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
              <br>
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <br>
              <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>