Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* ntp: clock drift under load
@ 2003-10-21 10:45 Heinz Ulrich Stille
  2003-10-21 17:02 ` Robert M. Riches Jr
  2003-10-21 22:41 ` Keith Harwood
  0 siblings, 2 replies; 5+ messages in thread
From: Heinz Ulrich Stille @ 2003-10-21 10:45 UTC (permalink / raw)


Hi!

I've got a problem with the clock on my "noname": under load (compiling
software e.g.) it seems to lose clock cycles. ntpd usually runs fine with
a "drift" value of around -35 or so, but when e.g. running a compiler, the
clock slows, drift reaches -500, and ntpd gives up.

I'm running kernel 2.6.0-test5 now, but behaviour was the same with kernel
2.4.20 and older. I tried ntpd from version 4.0.?? to 4.1.2. There are no
IDE discs in the system, but the problem still might be disc i/o related.

Has anybody else seen this?

MfG, Ulrich Stille


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ntp: clock drift under load
  2003-10-21 10:45 ntp: clock drift under load Heinz Ulrich Stille
@ 2003-10-21 17:02 ` Robert M. Riches Jr
  2003-10-21 22:41 ` Keith Harwood
  1 sibling, 0 replies; 5+ messages in thread
From: Robert M. Riches Jr @ 2003-10-21 17:02 UTC (permalink / raw)


In article <1473315.C2p56bTQqq@ulrich.design-d.de>, Heinz Ulrich Stille wrote:
> 
> I've got a problem with the clock on my "noname": under load (compiling
> software e.g.) it seems to lose clock cycles. ntpd usually runs fine with
> a "drift" value of around -35 or so, but when e.g. running a compiler, the
> clock slows, drift reaches -500, and ntpd gives up.
> 
> I'm running kernel 2.6.0-test5 now, but behaviour was the same with kernel
> 2.4.20 and older. I tried ntpd from version 4.0.?? to 4.1.2. There are no
> IDE discs in the system, but the problem still might be disc i/o related.
> 
> Has anybody else seen this?

That sounds like timer interrupts are getting dropped.
Being as this is a test release of a very early kernel, one
guess would be that perhaps interrupts are left disabled too
long somewhere in the kernel.  Or, perhaps there's a
different bug with similar symptoms.

As I read your first paragraph, I immediately thought of my
experience with IDE after my Alpha died and I was forced to
downgrade to X86.  By default, DMA and/or other
optimizations were disabled for the CDROM drives, which
caused the clock to run 3-4X too slow.  (Tuning some hdparm
options have solved that problem.)

One interesting test would be to compare CPU-bound
vs. disk-bound loads to see which one (or both) cause the
drift you're seeing.

Good luck.

Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ntp: clock drift under load
  2003-10-21 10:45 ntp: clock drift under load Heinz Ulrich Stille
  2003-10-21 17:02 ` Robert M. Riches Jr
@ 2003-10-21 22:41 ` Keith Harwood
  2003-10-22 16:11   ` Michal Jaegermann
  1 sibling, 1 reply; 5+ messages in thread
From: Keith Harwood @ 2003-10-21 22:41 UTC (permalink / raw)


Heinz Ulrich Stille wrote:

> Hi!
> 
> I've got a problem with the clock on my "noname": under
> load (compiling software e.g.) it seems to lose clock
> cycles. ntpd usually runs fine with a "drift" value of
> around -35 or so, but when e.g. running a compiler, the
> clock slows, drift reaches -500, and ntpd gives up.
> 
> I'm running kernel 2.6.0-test5 now, but behaviour was the
> same with kernel 2.4.20 and older. I tried ntpd from
> version 4.0.?? to 4.1.2. There are no IDE discs in the
> system, but the problem still might be disc i/o related.
> 
> Has anybody else seen this?

I have had a similar problem, but persistent. Using 2.2.14
and 2.4.20 the system clock runs slow all the time. It
doesn't seem to be related to load. The hardware clock does
much better. All the books say the system clock is better
than the hardware clock, so there is something wrong. I
haven't ben able to find out what is happening. Anyone got
any ideas?

Keith Harwood.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ntp: clock drift under load
  2003-10-21 22:41 ` Keith Harwood
@ 2003-10-22 16:11   ` Michal Jaegermann
  2003-10-22 22:41     ` Keith Harwood
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 2003-10-22 16:11 UTC (permalink / raw)


Keith Harwood <vitalmis@bigpond.net.au> wrote:
> 
> I have had a similar problem, but persistent. Using 2.2.14
> and 2.4.20 the system clock runs slow all the time. It
> doesn't seem to be related to load. The hardware clock does
> much better. All the books say the system clock is better
> than the hardware clock, so there is something wrong. I
> haven't ben able to find out what is happening. Anyone got
> any ideas?

There is a clock calibration routine in time.c in alpha specific
parts of a kernel code.  It goes like that "if a measured frequency
is too wildly off from an expected value then assume that this
measurement is botched and use a frequency from a table".
The problem is that this "wildly off" limits are set too crude
and on various occasions were rejecting for me good values
and as a result my clock was getting differences of few seconds
per hour.  Changing that function not to be so quick on rejects
resulted in a very good system clock without an external reference.

   Michal


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ntp: clock drift under load
  2003-10-22 16:11   ` Michal Jaegermann
@ 2003-10-22 22:41     ` Keith Harwood
  0 siblings, 0 replies; 5+ messages in thread
From: Keith Harwood @ 2003-10-22 22:41 UTC (permalink / raw)


Michal Jaegermann wrote:

> 
> There is a clock calibration routine in time.c in alpha
> specific
> parts of a kernel code.  It goes like that "if a measured
> frequency is too wildly off from an expected value then
> assume that this measurement is botched and use a
> frequency from a table". The problem is that this "wildly
> off" limits are set too crude and on various occasions
> were rejecting for me good values and as a result my clock
> was getting differences of few seconds
> per hour.  Changing that function not to be so quick on
> rejects resulted in a very good system clock without an
> external reference.

Found it. I have changed the lower limit for the EV6 from
466000000 to 450000000, because my machine is supposed to
be running at 466000000. Let's see if it fixes the problem.

Thanks very much.

Keith.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-10-22 22:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-21 10:45 ntp: clock drift under load Heinz Ulrich Stille
2003-10-21 17:02 ` Robert M. Riches Jr
2003-10-21 22:41 ` Keith Harwood
2003-10-22 16:11   ` Michal Jaegermann
2003-10-22 22:41     ` Keith Harwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox