Trixter http://www.0xdecafbad.com/
2005-Nov-04 03:57 UTC
[Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?
A jiffy is a kernel timer, this affects many thing in the kernel. Linux for as long as I know uses 1000hz. I am really surprised this failed on fc4. Ztdummy uses this as a base for timing, particularly with meetme and tdmoe. If its not high enough quality may be degraded. As for what you tried, you tried to adjust the realtime clock, which is slightly different. What kernel version are you using? -----Original Message----- From: "Patrick"<asterisk@puzzled.xs4all.nl> Sent: 11/4/05 2:34:14 AM To: "Asterisk Users Mailing List - Non-Commercial Discussion"<asterisk-users@lists.digium.com> Subject: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror? Hi all, When I compile zaptel from today's cvs HEAD on an updated FC4 box it fails with the following message: CC [M] /home/patrick/redhat/BUILD/zaptel/ztdummy.o /home/patrick/redhat/BUILD/zaptel/ztdummy.c:103:2: error: #error ztdummy requires 1000 hz jiffies If I comment out the code causing that error the compilation goes fine but I guess it's there for a reason :) After some googling I tried the following but that did not solve the issue: echo 1000 > /proc/sys/dev/rtc/max-user-freq compile still fails echo 1024 > /proc/sys/dev/rtc/max-user-freq compile also fails Anyone have a pointer how I solve this error? Thanks and regards, Patrick _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list [Message truncated. Tap Edit->Mark for Download to get remaining portion.]
Dave Cotton
2005-Nov-04 04:12 UTC
[Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?
On Tue, 1980-01-01 at 09:11 -0800, Trixter http://www.0xdecafbad.com/ wrote:> A jiffy is a kernel timer, this affects many thing in the kernel. Linux for as long as I know uses 1000hz. I am really surprised this failed on fc4. Ztdummy uses this as a base for timing, particularly with meetme and tdmoe. If its not high enough quality may be degraded. > > As for what you tried, you tried to adjust the realtime clock, which is slightly different. > > What kernel version are you using? >He is probably using 2.6.14 in which you can opt for 100hz (servers), 250hz (mixed) and 1000hz (desktops). I discussed this with Kevin when the 2.6.14 series started, have a look in the archives. CVS ztdummy certainly compiles correctly with 100hz. -- Dave Cotton <dcotton@linuxautrement.com>
Patrick
2005-Nov-04 05:00 UTC
[Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?
On Tue, 1980-01-01 at 09:11 -0800, Trixter http://www.0xdecafbad.com/ wrote:> A jiffy is a kernel timer, this affects many thing in the kernel. Linux for as long as I know uses 1000hz. I am really surprised this failed on fc4. Ztdummy uses this as a base for timing, particularly with meetme and tdmoe. If its not high enough quality may be degraded. > > As for what you tried, you tried to adjust the realtime clock, which is slightly different. > > What kernel version are you using?The kernelversion is 2.6.13-1.1526_FC4 on x86_64. I just tried to build the same zaptel on a i686 FC4 box (same kernel version) and it built just fine. The only difference between the two (besides the obvious) is that the x86_64 is booted with "no_timer_check" to prevent the clock/time from going way faster than it should. When booting the kernel there is a messages that says "8254 timer not connected to IO-APIC". Any suggestions? Regards, Patrick ps. the date on your email said Jan 1, 1980.