Re: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?

2005-11-26 Thread Stephen D. Ray

Andrew Kohlsmith wrote:

On Saturday 05 November 2005 02:54, Tzafrir Cohen wrote:


Asterisk here falls under desktop: Much like interactive desktop apps
it need timely response rather than more time at the CPU.



I am not so sure; asterisk is a multithreaded app, yes, but I would think that 
kernel preemption would be a far bigger 'win' with Asterisk than a far more 
granular (but heavier processor use as a result) timer.


I have not done any real benchmarks to prove or disprove this, but more of a 
Greek science method.  :-)


-A.


I realize I'm responding to this way late, but I was following the 
discussion on the linux kernel list when they were debating the change 
of the default from 1000Hz to 250Hz.  The biggest outcry against the 
change were from a lot of the multimedia people, who complained that a 
lot of sound and multimedia stuff, midi, etc., would suffer greatly from 
a slower tickrate.  I'd imagine a lot of the codecs that asterisk uses 
would have the same issue.


Stephen
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?

2005-11-05 Thread Andrew Kohlsmith
On Saturday 05 November 2005 02:54, Tzafrir Cohen wrote:
 Asterisk here falls under desktop: Much like interactive desktop apps
 it need timely response rather than more time at the CPU.

I am not so sure; asterisk is a multithreaded app, yes, but I would think that 
kernel preemption would be a far bigger 'win' with Asterisk than a far more 
granular (but heavier processor use as a result) timer.

I have not done any real benchmarks to prove or disprove this, but more of a 
Greek science method.  :-)

-A.
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?

2005-11-04 Thread Trixter http://www.0xdecafbad.com/
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[EMAIL PROTECTED]
Sent: 11/4/05 2:34:14 AM
To: Asterisk Users Mailing List - Non-Commercial 
Discussionasterisk-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.]

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?

2005-11-04 Thread Dave Cotton
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 [EMAIL PROTECTED]

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?

2005-11-04 Thread Patrick
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. 
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Zaptel: Hz != 1000 causing ztdummy compilationerror?

2005-11-04 Thread Tzafrir Cohen
On Fri, Nov 04, 2005 at 12:12:08PM +0100, Dave Cotton wrote:
 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).

Note:

Asterisk here falls under desktop: Much like interactive desktop apps
it need timely response rather than more time at the CPU.

 
 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.

Still getting HZ to be 1000 is probably preferred.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users