[OpenSIPS-Users] Issues with internal timer ticks

Colin Mason cmason at frontiernetworks.ca
Fri Aug 7 00:42:53 CEST 2015


I just implemented a timer route that was executing a bit late every time on 1.11.1. Looks like the same issue. This is not a virtual machine. I found this thread when googling. You can see that there is a constant time skew.

CentOS 6.5.
Linux 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

opensipsctl fifo uptime;opensipsctl fifo get_statistics timestamp

Now:: Thu Aug  6 18:33:23 2015
Up since:: Thu Aug  6 18:18:57 2015
Up time:: 866 [sec]
core:timestamp = 848

Now:: Thu Aug  6 18:42:17 2015
Up since:: Thu Aug  6 18:18:57 2015
Up time:: 1400 [sec]
core:timestamp = 1374


Colin




From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Vitalii Hurin
Sent: Monday, July 06, 2015 8:35 AM
To: users at lists.opensips.org
Subject: [OpenSIPS-Users] Issues with internal timer ticks

Greetings!

I'm looking for someone who can help with understanding the possible reasons of issue with internal timer ticks in OpenSIPS 1.11.3 . So here is the problem: we are developing custom call center and once I've noticed all time-based values that are influenced by internal timer (as it turned out, by function get_ticks() from timer.c) were constantly getting behind actual system time. For example, when I call such command sequence "opensipsctl fifo uptime; opensipsctl fifo get_statistics timestamp", I get this kind of output:

Now:: Wed Jul  1 13:01:52 2015
Up since:: Tue Jun 30 15:54:50 2015
Up time:: 76020 [sec]
core:timestamp:: 75098

As you can see, for nearly one day we have 922 second and I've got even about 3 hour difference for a couple of days! I can't find certain rule of difference increase but it's happening smoothly every time. After checking out some production servers with an old version of our call center based on OpenSIPS 1.8, I've found no similar issues there and core:timestamp value is always equal to up time despite server setups are almost identical. So please help me with searching the reason in our system. Or can it be a bug or something related to timer counting in OpenSIPS 1.11 core? Can't find anything about similar issues on Google...

Thanks in advance!
Vitalii.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150806/01765e35/attachment.htm>


More information about the Users mailing list