Re: High-precision timers - independent of HZ right?



4805455@xxxxxxxxx writes:

Hello. I have compiled the 2.6.19 kernel with Ingo Molnar et al's
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.

What are you using. Note that /dev/rtc states in the docs that it will NOT
deliver more than 600Hz to any user who is not root. Note also that you
have to be careful, since 1KHz interrupt rate does not leave you that much
time for your processing. Ie your program may be running away and spending
more time than available to carry out the computations.
What in the world do you want that you want to interrupt your system at
1KHz. rate?


Any information is appeciated!

Sincerely,

Jim Beck

.



Relevant Pages

  • Re: RT patch acceptance
    ... judge the complexity of a design for that type of system. ... claim that you cannot judge the complexity of a kernel modification. ... Since the patch in question doesn't actually need that information to ... nanokernel's API up to date with additions to Linux's API that RT people ...
    (Linux-Kernel)
  • Re: inline asm semantics: output constraint width smaller than input
    ... Now in this case the patch you suggest might end up hurting the end result ... The below patch is to build the kernel for x86_64, ... # Device Drivers ... # PCI IDE chipsets support ...
    (Linux-Kernel)
  • [RFC] Making percpu module variables have their own memory.
    ... Someone using the -rt patch found that one of the tracing options caused ... 64K for every CPU to cover all the per_cpu variables used in the kernel ... static void wakeup_softirqd_prio ...
    (Linux-Kernel)
  • Re: This is [Re:] How to improve the quality of the kernel[?].
    ... The -mm kernel already implements what your proposed PTS would do. ... If patch have no TS ID, ... Thus i can apply for example lguest patches and implement and test new ... How many open source projects use Bugzilla and how many use the Debian BTS? ...
    (Linux-Kernel)
  • Re: Documentation - how to apply patches for various trees
    ... >> explanation of the various kernel trees and how to apply their patches. ... +a patch to the kernel or, more specifically, what base kernel a patch for ... +and what new version the patch will change the source tree into. ...
    (Linux-Kernel)