<div dir="ltr"><div>Hi,</div>
<div> </div>
<div>another thing in that subject - i am using kamailio with 4096Mb of shmem.</div>
<div>when i do &quot;kamctl fifo getstatistics shmem:&quot; i get the right value. </div>
<div>but, when i try to do $stat(total_size) and get it on xlog, it shows the value 0.</div>
<div>how do i overcome it?</div>
<div> </div>
<div>Cheers,</div>
<div>Uri<br></div>
<div class="gmail_quote">On Wed, Feb 8, 2012 at 1:38 PM, Uri Shacked <span dir="ltr">&lt;<a href="mailto:ushacked@gmail.com">ushacked@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div>that last version i used is 3.2.1</div>
<div>i guess the problem is that i multiply by 100 and then the $stat() variable gets a minus sign... no?</div>
<div>on the previous version i used less data so even after multiplying it didn&#39;t reached the var limit.</div>
<div>i will check later what happends if i change the multiply order like var(x)=($stat(1)/$stat(2))*100.</div>
<div>thanks<br><br></div>
<div>
<div class="h5">
<div class="gmail_quote">On Wed, Feb 8, 2012 at 12:26 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div bgcolor="#FFFFFF" text="#000000">Hello,<br><br>there were no changes to this part of code in 3.2.x, what was the previous version you used?<br><br>Also, note that the variables work with signed integers, which have the range -<a href="tel:2147483648" target="_blank" value="+12147483648">2147483648</a> to <a href="tel:2147483647" target="_blank" value="+12147483647">2147483647</a>. So when you pass over <a href="tel:2147483647" target="_blank" value="+12147483647">2147483647</a>, it gets negative.<br>
<br>Cheers,<br>Daniel 
<div>
<div><br><br>On 2/6/12 9:51 AM, Uri Shacked wrote: </div></div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>i am using some math to send to my NOC the memory usage of kamailio.</div>
<div>this is what i do:</div>
<div> </div>
<div>$var(xxx)=$stat(real_used_size)*100/$stat(total_size)</div>
<div> </div>
<div>before the 3.2.2 upgrade, i usualy got regular results - 3,5,20 etc....</div>
<div> </div>
<div>now, i get results like -8, -32 and so...</div>
<div> </div>
<div>any ideas why?</div>
<div> </div>
<div>here are the $stat numbers that gets me the -8 result:</div>
<div>$stat(real_used_size)=31899516</div>
<div>$stat(total_size)=134217728</div>
<div> </div>
<div> </div>
<div> </div></div><br>
<fieldset></fieldset> <br></div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre><span><font color="#888888"></font></span></blockquote><span><font color="#888888"><br><pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre></font></span></div></blockquote></div>
<br></div></div></div></blockquote></div><br></div>