Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Timer_fd, pthreads, or DAHDI timer for timing under 1.8.11.0?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
viljoens at verishare....
Guest





PostPosted: Fri Feb 20, 2015 1:39 am    Post subject: [asterisk-users] Timer_fd, pthreads, or DAHDI timer for timi Reply with quote

Hi guys

I have some questions regarding the above

1. Why are there different options for timing?

2. What are the differences between these types of timing sources?

3. When should you use what?

4. Is one timer type more "reliable" for an Asterisk system under heavy
loads than another while NOT using any DAHDI hardware - SIP only?

I'm of course referring to the familiar "spamming timer_fd error messages in
the CLI with increasing load until asterisk crashes" phenomenon.

Using 1.8.11.0 on Centos 6.5

Any thoughts appreciated!

Thank you

Stefan


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Fri Feb 20, 2015 8:33 am    Post subject: [asterisk-users] Timer_fd, pthreads, or DAHDI timer for timi Reply with quote

Stefan Viljoen wrote:
Quote:
Hi guys

I have some questions regarding the above

1. Why are there different options for timing?

Some systems don't have timerfd, some systems don't have DAHDI. The goal
is to have at least some sort of timing module for every system.

Quote:

2. What are the differences between these types of timing sources?

Timerfd uses an interface provided by the kernel for reliable timing.
DAHDI uses the timing provided by a physical card. pthread emulates a
timing source by using some wait logic. kqueue is for OSX systems.

Quote:

3. When should you use what?

timerfd > DAHDI > pthread.

Quote:

4. Is one timer type more "reliable" for an Asterisk system under heavy
loads than another while NOT using any DAHDI hardware - SIP only?

timerfd will always be more reliable than pthread.

Quote:

I'm of course referring to the familiar "spamming timer_fd error messages in
the CLI with increasing load until asterisk crashes" phenomenon.

A change was done over 2 years ago[1] to stop this spamming from
occurring. An issue[2] remains open, though, as the underlying reason
for the failure was not isolated.

[1] http://svnview.digium.com/svn/asterisk/branches/?view=log&pathrev=375893
[2] https://issues.asterisk.org/jira/browse/ASTERISK-20032

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services