Re: [PATCH] Updated: Dynamic Tick version 050408-1

From: Tony Lindgren
Date: Sat Apr 09 2005 - 03:11:58 EST


On Fri, Apr 08, 2005 at 03:42:59PM -0600, Frank Sorenson wrote:
> Tony Lindgren wrote:
> >
> > Then you might as well run timetest from same location too to make
> > sure your clock keeps correct time.
>
> Seems to be going up when under load, and down when idle, so I suppose
> it's working :) The clock is only a little jittery, but not more than
> I'd expect across the network, so it looks like it's keeping time okay.

Good.

> Would it be possible to determine whether the system will wake to the
> APIC interrupt at system boot, rather than hardcoded in the config?
> After you explained the problem, I noticed that creating my own
> interrupts (holding down a key on the keyboard for example) kept the
> system moving and not slow. For example, something like this (sorry, I
> don't know the code well enough yet to attempt to code it myself):
>
> set the APIC timer to fire in X
> set another timer/interrupt to fire in 2X
> wait for the interrupt
> if (time_elapsed >= 2X) disable the APIC timer
> else APIC timer should work
>
> Or, determine which timer woke us up, etc.

Yeah, I was thinking that too. But maybe there's some way of stopping
PIT interrupts while keeping APIC timer interrupts running on all chips.
It seems to work OK on my P3 boxes, but seems to fail on newer machines.

BTW, stopping PIT interrupts (like the HRT VST patch does) seems to
kill APIC timer interrupts too, the same way as reprogamming PIT does.
Or maybe there's something else that needs to be done to get APIC
interrupts going after PIT interrupts are disabled.

Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/