Commit Graph

108 Commits

Author SHA1 Message Date
Jeff Lenk 5ef8c49728 fix trivial compiler warning 2011-04-29 15:01:07 -05:00
Anthony Minessale 741707297f typo 2011-04-29 09:35:46 -05:00
Anthony Minessale 16e3d1fa25 default timer to run slower and increase as needed, Run the timer at 20ms by default and drop down as needed unless you set 1m-timer=true which was previous default 2011-04-29 11:09:14 -05:00
Anthony Minessale 73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Anthony Minessale 0b51aca321 enable optimal defaults on linux kernels that can support newer features. 2011-04-18 11:17:33 +00:00
Anthony Minessale e4eade33ac fix default tipping point it was too low 2011-04-15 14:46:24 +00:00
Anthony Minessale 82e3d49fd2 add L16 def for 32ms and allow timer matrix to drop to 1ms to support nelly 2011-04-12 09:47:11 -05:00
Anthony Minessale 6388e03d07 allow 100 microsecond tolerance on timer loop 2011-03-28 13:50:52 -05:00
Anthony Minessale 10174ea6d5 add timerfd support to the core for now you must enable it in switch.conf.xml with the param enable-softtimer-timerfd=true later if it proves to work well we can make it on by default, please test if you have a new kernel that supports this option kernel >= 2.6.25 and libc >= 2.8 2011-03-21 20:49:39 -05:00
Anthony Minessale 5f18ec9459 FS-3168 this will remove the reported symptom but does not change the fact that 1khz resolution is ideal for proper performance 2011-03-20 18:28:48 -05:00
Anthony Minessale 1bfd6644ea disable clock_nanosleep by default 2011-02-18 18:26:52 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Anthony Minessale 903b2901db try to adjust the timer to be ok with the horrible 10000 microsecond kernel resolution on amazon ec3 but that doesn't mean it's not horribly wrong to run the kernel that slow 2010-12-27 15:35:10 -06:00
Anthony Minessale 88983da46e FSCORE-639 2010-07-30 02:20:54 -05:00
Anthony Minessale d6d7773ca4 FSCORE-639 with some additional changes 2010-07-29 17:41:33 -05:00
Jeff Lenk 3515c7a020 FSCORE-643 Windows: Add start parameter -monotonic-clock, replaces build flag WIN32_MONOTONIC 2010-07-28 20:44:45 -05:00
Jeff Lenk 30d2e7fda2 FSCORE-626 Add alternate timing method support for Windows XP and 2003 - must be conditionally compiled(default is original timing) 2010-07-15 09:03:14 -05:00
Anthony Minessale 95665f0096 JANITOR-4 2010-04-21 10:11:13 -05:00
root 23936edd47 FSCORE-578 2010-03-31 12:40:06 -05:00
Anthony Minessale b1ddb70cf1 add fsctl min_idle_cpu and min-idle-cpu feature to refuse calls after the system fallse below a certian percentage of idle cpu
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16962 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-10 20:21:34 +00:00
Anthony Minessale 66da758d26 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16880 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 16:23:22 +00:00
Anthony Minessale 26eb2ea8f1 "I wan't my two dollars!!, I mean CPU percentage points!"
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16869 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-02 20:57:55 +00:00
Anthony Minessale 717308a3cf compromising on timing code, remove -vm and make it default, make new -heavy-timing for previous default, change tipping-point to work of count of active timers rather than sessions, this should statisfy the droves of 'I wish it worked like 1.0.4 people'
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-01 19:25:27 +00:00
Anthony Minessale ae2354be24 small timer test tweak for horribly clocked boxen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16725 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-22 22:42:29 +00:00
Anthony Minessale e3e7ad8fbe disable cpu timer affinity by default but make it still possible via config and fix stray constant in tipping_point
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16679 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-17 19:50:25 +00:00
Anthony Minessale 886e1ddb4d run indent on the whole tree and update copyright dates in prep for 1.0.5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Anthony Minessale 07de75014a reverse logic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16475 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-23 06:17:09 +00:00
Carlos J. Talbot cffd8676db Need a int to switch_interval_time_t cast for 32 bit compiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16457 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-22 14:55:33 +00:00
Anthony Minessale 429ade697e small tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16456 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-22 04:04:34 +00:00
Anthony Minessale 4cb029e45f small tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16455 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-22 03:58:16 +00:00
Anthony Minessale 1248e6c644 dont let value dip below 0
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16409 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-19 18:23:18 +00:00
Anthony Minessale da29b01195 few new command line opts -vm for conditonal timer, -nocal to skip timer calibration and -nort to turn off clock_realtime fam of functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16324 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 21:09:51 +00:00
Brian West 21234215f0 finally fix private hold
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16315 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 00:31:43 +00:00
Anthony Minessale abd116829e switch to conditional broadcast mode on slow kernels
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16308 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-14 16:02:46 +00:00
Jeff Lenk b88a016962 Fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-14 04:01:32 +00:00
Anthony Minessale 11d8868b4a timer calibration tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16294 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 22:36:13 +00:00
Michael Jerris 4fa2b2f487 fix compile error
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 22:13:11 +00:00
Anthony Minessale d314f25424 update timer calibration
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 21:07:39 +00:00
Anthony Minessale e5cadc5196 MODAPP-387
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16278 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 18:02:42 +00:00
Michael Jerris ea5c0c2111 attempt to properly check if we can use CPU_SET with sched_setaffinity because some older libc had gnu extensions in the definitions of CPU_SET which we do not allow (FSBUILD-226)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16263 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-12 18:31:13 +00:00
Anthony Minessale 35c53d5b1a fix power of 10 in cps counter
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16144 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-04 21:32:10 +00:00
Michael Jerris 2c105f6ccf fix build errors one windows and correct var types (FSBUILD-225)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16112 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-01 19:35:56 +00:00
Anthony Minessale f97846f492 more timer changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16098 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-30 20:55:04 +00:00
Michael Jerris 648da02c1d revert
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16095 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-30 17:49:40 +00:00
Anthony Minessale 3e96cf8929 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16094 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-30 15:52:11 +00:00
Anthony Minessale 8f05bb7939 add core param for controling timer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16093 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-30 15:47:31 +00:00
Anthony Minessale f80a9bd02a trade some max call count for more accurate timing in full media situations, hint: use 30ms ptime for drastic reduction in resources
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16081 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-29 23:21:20 +00:00
Anthony Minessale aa42215fb6 FSCORE-472
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15213 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:33:55 +00:00
Anthony Minessale df7637f687 change switch_strlen_zero to zstr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Anthony Minessale 7392fa5807 try to improve autoflush and other silly audio glitches from edge cases and help FSCORE-416
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14800 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-10 00:46:24 +00:00