Timer frequency
Hi folks,
does Xenomai adjust the system timer frequency? I probably does, so how can I find out the frequency on my system?
Thanks,
Richard
Signature · 2 lines
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Quoted 3 lines · [email protected] wrote:
Hi folks,
does Xenomai adjust the system timer frequency? I probably does, so how can I find out the frequency on my system?
In short, by default, the system timer is handled in aperiodic mode, which means that there is no timer frequency: the system timer is programmed at each software timer event to tick at next event.
If you are using the stable version or previous releases, the system timer can be set to periodic mode at compilation time or by passing parameters to skins modules.
Xenomai trunk emulates periodic mode over aperiodic mode and allows to set for each skin whether it will use the aperiodic timer, or an (emulated) periodic timer.
Signature · 1 line
Gilles Chanteperdrix.
Hi Gilles,
Thank you for your answer!
Does the Linux-Kernel need to be triggered every now and then to adjust system clock? I know that in times of DOS, the system timer had to occur every 18.3 seconds, and I have heard that Linux adjusted this for better scheduling. Do you know how often Xenomai issues a timer irq during idle phases?
Thanks in advance,
Richard
-------- Original-Nachricht --------
Datum: Fri, 20 Apr 2007 22:27:16 +0200
Von: Gilles Chanteperdrix <[email protected]>
An: [email protected]
CC: [email protected]
Betreff: Re: [Xenomai-help] Timer frequency
Quoted 25 lines
Quoted 3 lines · [email protected] wrote:
Hi folks,
does Xenomai adjust the system timer frequency? I probably does, so how
can I find out the frequency on my system?
In short, by default, the system timer is handled in aperiodic mode, which means that there is no timer frequency: the system timer is programmed at each software timer event to tick at next event.
If you are using the stable version or previous releases, the system timer can be set to periodic mode at compilation time or by passing parameters to skins modules.
Xenomai trunk emulates periodic mode over aperiodic mode and allows to set for each skin whether it will use the aperiodic timer, or an (emulated) periodic timer.
Signature · 1 line
Gilles Chanteperdrix.
Signature · 2 lines
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Quoted 24 lines · [email protected] wrote:
Hi Gilles,
Thank you for your answer!
-------- Original-Nachricht --------
Datum: Fri, 20 Apr 2007 22:27:16 +0200
Von: Gilles Chanteperdrix <[email protected]>
An: [email protected]
CC: [email protected]
Betreff: Re: [Xenomai-help] Timer frequencyQuoted 4 lines
Quoted 3 lines · [email protected] wrote:
Hi folks,
does Xenomai adjust the system timer frequency? I probably does, so how
Quoted 8 lines
can I find out the frequency on my system?
In short, by default, the system timer is handled in aperiodic mode, which means that there is no timer frequency: the system timer is programmed at each software timer event to tick at next event.
Quoted 5 lines
Does the Linux-Kernel need to be triggered every now and then to adjust system clock? I know that in times of DOS, the system timer had to occur every 18.3 seconds, and I have heard that Linux adjusted this for better scheduling. Do you know how often Xenomai issues a timer irq during idle phases?
On most architectures, one of the tasks of Xenomai nucleus is to handle a periodic software timer which emulates the system timer used by Linux. The frequency of this timer is the same as the one expected by Linux, it depends on CONFIG_HZ.
There is at least on exception to this scheme: the x86 with local APIC. In this case, Xenomai uses the local APIC as system timer, and Linux continues to use the PIT.
Signature · 1 line
Gilles Chanteperdrix.