Re: [PATCH] amd76x_pm on 2.6.0-test9 cleanup

From: Pasi Savolainen
Date: Tue Nov 04 2003 - 18:50:31 EST


* Tony Lindgren <tony@xxxxxxxxxxx> [031105 01:12]:
> * Charles Lepple <clepple@xxxxxx> [031104 14:40]:
> > On Tuesday, November 4, 2003, at 03:05 PM, Tony Lindgren wrote:
> >
> > >* Charles Lepple <clepple@xxxxxx> [031104 11:45]:
> > >>On Tuesday 04 November 2003 02:15 pm, Tony Lindgren wrote:
> > >>>I've heard of timing problems if it's compiled in, but supposedly
> > >>>they
> > >>>don't happen when loaded as module.

> > >>I did, however, manage to keep ntpd happy by reducing HZ to 100. Even
> > >>raising
> > >>HZ to 200 is enough to throw off its PLL. The machine is idle for 90%
> > >>of the
> > >>day, though, so I don't know if the PLL is adapting to the fact that
> > >>the
> > >>system is idling, but the values for tick look reasonable.
> > >
> > >Interesting, sounds like the idling causes missed timer interrupts?
> > >Can you
> > >briefly describe what's the easiest way to reproduce the timer
> > >problem, just
> > >change HZ to 200 and look at the system time?

AFAIK the problem was that TSC's got desynchronized and the
gettimeofday didn't produce monotonic dates at that.

You could make problem go away either by setting HZ=100 or compiling
without TSC support. (kerneloption notsc didn't have the effect).

> > Weird. On -test9-bk at HZ=1000, with amd76x_pm loaded as a module
> > (lazy_idle=800, the default), the system clock is running fast.

I'm making mrtg graphs of
/sys/devices/pci0000\:00/0000\:00\:00.0/C2_cnt , and it looks like
-test9 is calling it at a rate of 1100Hz, compared to ~1000Hz on
previous (HZ=1000) kernels.
Of course these numbers are not under mutex and increased by both
processors.

With ntpd I'm getting following:
Nov 5 00:26:32 tienel ntpd[501]: time reset -7.151071 s
Nov 5 00:26:32 tienel ntpd[501]: synchronisation lost
Nov 5 00:41:35 tienel ntpd[501]: time reset -7.150284 s
Nov 5 00:41:35 tienel ntpd[501]: synchronisation lost

So drift is about 10min / 24h (unless I botched the math, it seems to
happen after a dose of modula-3)


--
Psi -- <http://www.iki.fi/pasi.savolainen>
-
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/