<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Paul,<br>
    <br>
    indeed, some of these stats are not consistent. I will go through
    them. General idea is that the old stats framework will be replaced
    by a new one (present already in the code) that does not need any
    kind of locking when updating the counters, thus is faster.<br>
    <br>
    If you have specific examples of current stats that go nuts in 64b,
    please report them here so I will start with them then I will go
    through the rest of sources.<br>
    <br>
    Thanks,<br>
    Daniel<br>
    <br>
    On 3/29/11 12:04 PM, Paul Pankhurst wrote:
    <blockquote cite="mid:E7A3523988114F68AED3D320F711621F@pjplaptop"
      type="cite">
      <div dir="ltr">
        <div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
          font-size: 12pt;">
          <div style="font-style: normal; display: inline; font-family:
            'Calibri'; color: rgb(0, 0, 0); font-size: small;
            font-weight: normal; text-decoration: none;">
            <div>&nbsp;</div>
          </div>
          <div style="font-style: normal; display: inline; font-family:
            'Calibri'; color: rgb(0, 0, 0); font-size: small;
            font-weight: normal; text-decoration: none;">
            <div dir="ltr">
              <div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
                font-size: 12pt;">
                <div><font face="Times New Roman">I have noticed that
                    'kamctl monitor' displays corrupt statistics when
                    kamailio is built for a 64 bit platform. <br>
                    <br>
                    Further investigation has revealed that the reason
                    is the underlying datatype is a long, whilst some of
                    the wrapper functions (e.g. get_stat_val) return
                    unsigned int. On a 32bit machine where a long and
                    int are both the same size it is not a problem, but
                    on a 64 bit machine they are different and hence the
                    problem. <br>
                    <br>
                    Some code uses the wrapper function, other does not,
                    in the case of mi_get_stats it uses both, so
                    depending on paramaters passed to the MI fifo it may
                    work or produce garbage results. </font></div>
                <div><br>
                  &nbsp;</div>
                <div>Paul</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>