linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pasi Savolainen <pasi.savolainen@hut.fi>
To: Tony Lindgren <tony@atomide.com>
Cc: Charles Lepple <clepple@ghz.cc>,
	lkml <linux-kernel@vger.kernel.org>,
	john stultz <johnstul@us.ibm.com>
Subject: Re: [PATCH] amd76x_pm on 2.6.0-test9 cleanup
Date: Wed, 5 Nov 2003 01:46:40 +0200	[thread overview]
Message-ID: <20031104234640.GC408936@kosh.hut.fi> (raw)
In-Reply-To: <20031104231157.GI1042@atomide.com>

* Tony Lindgren <tony@atomide.com> [031105 01:12]:
> * Charles Lepple <clepple@ghz.cc> [031104 14:40]:
> > On Tuesday, November 4, 2003, at 03:05 PM, Tony Lindgren wrote:
> > 
> > >* Charles Lepple <clepple@ghz.cc> [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>

  reply	other threads:[~2003-11-04 23:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04  0:22 [PATCH] amd76x_pm on 2.6.0-test9 cleanup Tony Lindgren
2003-11-04 18:41 ` john stultz
2003-11-04 19:15   ` Tony Lindgren
2003-11-04 19:44     ` Charles Lepple
2003-11-04 20:05       ` Tony Lindgren
2003-11-04 20:52         ` Charles Lepple
2003-11-04 22:38         ` Charles Lepple
2003-11-04 23:11           ` Tony Lindgren
2003-11-04 23:46             ` Pasi Savolainen [this message]
2003-11-04 20:21     ` Pasi Savolainen
2003-11-04 20:55       ` Tony Lindgren
2003-11-04 20:57         ` john stultz
2003-11-04 21:14           ` Tony Lindgren
2003-11-14 11:56         ` Pasi Savolainen
2003-11-04 21:01       ` Charles Lepple
2003-11-04 21:17         ` Tony Lindgren
2003-11-05 19:42     ` Felix Maibaum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031104234640.GC408936@kosh.hut.fi \
    --to=pasi.savolainen@hut.fi \
    --cc=clepple@ghz.cc \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).