Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
hi res timer
- 01-20-2006
January 20, 2006, 2:54 pm

Hi,
In linux 2.6 kernel the clock_getRes says that it is 1ms accuracy. 20%
I basically want to have a method run every 1 ms. However when I run it =
on linux 2.6 kernel fedora core 2 i don't get that and I get a lot of =
jitter.
We have tried running it as root and used top to renice it to a high =
level.
What are we doing wrong? 20%
Can someone point me to an example chuck of code that shows a hi-res =
timer at over 100 hz.
thanks in advance

Re: hi res timer

Which 2.6 kernel, there are several of them :) Is it saying "accuracy"
or is it saying "precision?"

What do you get and what is your definition of "a lot" of jitter?
What would be acceptable jitter for your situation?

I seem to recall that there can be three values for HZ now in a
2.6.mumble kernel (maybe that cam in .14?) 100, 250 and 1000 I wonder
if running HZ at 1000 and perhaps playing with timeslices and such
might get things going "well enough" without having to go all the way
to what I think is RTAI?
rick jones
--
firebug n, the idiot who tosses a lit cigarette out his car window
these opinions are mine, all mine; HP might not want them anyway... :)
firebug n, the idiot who tosses a lit cigarette out his car window
these opinions are mine, all mine; HP might not want them anyway... :)
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » how to interpret crash output (ARM system)?
- — Next thread in » Embedded Linux
-
- » Looking for ARM/MIPS based Ref. Deisgn to load Linux 2.4/2.6
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Martwa płyta PC retro - od czego zacząć?
- — The site's Newest Thread. Posted in » Electronics (Polish)
-