Re: High-precision timers - independent of HZ right?
- From: The Natural Philosopher <a@xxx>
- Date: Wed, 31 Jan 2007 01:57:31 +0000
4805455@xxxxxxxxx wrote:
On Jan 30, 12:57 pm, nob...@xxxxxxx (Kevin the Drummer) wrote:4805...@xxxxxxxxx <4805...@xxxxxxxxx> wrote:Hello. I have compiled the 2.6.19 kernel with Ingo Molnar et al'sI can't tell what's independent and what's dependent. Try changing
2.6.19-rt15 patch. I also enabled the high-precision timers in the
config before building the kernel. I boot this kernel and I have a
program that asks for a timer tick at various rates.
Despite the high-resolution timer, I cannot get a 1 millisecond timer
with any accuracy. This may be scheduling latency, but I have the rt
patch installed. I am running an unloaded 1.4 MHz pentium M and
CONFIG_HZ is 250 (which should be irrelevnat right?). Has
anyone gone through all this yet? There doesn't seem to be a lot of
documentation on it, just the patches.
CONFIG_HZ to 1000 and see if it makes a difference. Please do let us
know what you find.
Thanks!
--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Show Windows & Gates to the exit door.
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Well, if I make CONFIG_HZ be 1000 then I definitely get 1 millisecond timers, but what if I want even smaller? I thought the high-
resolution timer patch was tog et around CONFIG_HZ.
Anyway...I'm considering buying from a vendor like BlueCat to have them solve all this.
Dunno if it helps, but years ago I did something like this on a 386...reprogrammed the timers to run much faster, and then wrote a patch ISR that chained into the standard ISR..and only passed control to it every few timer pulses..that gave me a fast and precise way to stick a signal into something low level I was working on.
A separate board with a timer may be another way..but experience suggest you may have to hack interrupts and the main kernel timer routines.
I am not sure what you are trying to do, but fast accurate real time stuff is generally better handled by a separate board with its own processor. Linux and most multi tasking multusuer OS'es have sch variable latency is not wise to rely on them in time critical stuff..which is why just about every IO channel has some sort of buffered processor in it.
Jim.
- Follow-Ups:
- Re: High-precision timers - independent of HZ right?
- From: John-Paul Stewart
- Re: High-precision timers - independent of HZ right?
- References:
- Re: High-precision timers - independent of HZ right?
- From: Kevin the Drummer
- Re: High-precision timers - independent of HZ right?
- Prev by Date: Re: Trying to get rid of minicom output
- Next by Date: Re: create directories based on directory contents
- Previous by thread: Re: High-precision timers - independent of HZ right?
- Next by thread: Re: High-precision timers - independent of HZ right?
- Index(es):
Relevant Pages
|