Bug 64178 - Systematic clock error
Summary: Systematic clock error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: kernel
Version: 1.0
Hardware: alpha
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Copeland
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-27 22:37 UTC by Michal Jaegermann
Modified: 2007-04-18 16:42 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-04-30 21:53:36 UTC
Embargoed:


Attachments (Terms of Use)
A patch to make frequency estimates tighter (5.53 KB, patch)
2002-04-30 16:27 UTC, Michal Jaegermann
no flags Details | Diff

Description Michal Jaegermann 2002-04-27 22:37:32 UTC
Description of Problem:

Alpha kernels, including 2.4.9-31.1 from rawhide but not limited to that,
exhibit a systematic significant clock drift if left without synchronization
with an outside source.  On 800 MHz machine a system clock is around 15 seconds
per hour late.  This is 6 minutes per day.

To add insult to injury Red Hat scripts on a reboot clobber perfectly valid
hardware clock value (Alphas usually have much more stable hardware clock
than x86 boards) with a messed up system clock.

In absence of a good xntp server a workaround is to reset a system clock from
a hardware clock in a cron job.  Then time keeping is pretty good bug "jumpy".

Comment 1 Michal Jaegermann 2002-04-30 16:25:41 UTC
After dropping tolerances in arch/alpha/time.c from 1% to .1%  I can see now
while booting "HWRPB cycle frequency bogus.  Estimated 796284726 Hz".  This
is still not perfect, as either this frequency is underestimated or time
calculations are loosing precision,  but much better then the current state.
So far I am seeing a gain of something like 36 seconds, or maybe a bit less,
for 19 hours, i.e. an error of an order of 0.05%.  Moreover now this should
be also tuneable with 'cycle=...' boot parameter which was impossible before
(I did not try that yet).

I also "backported" changes in time.c from 2.4.19pre... to 2.4.9-... as
they make much more sense but tolerance limits are here really important.
One percent is nearly fifteen minutes per day.  A patch is attached.

Comment 2 Michal Jaegermann 2002-04-30 16:27:27 UTC
Created attachment 55884 [details]
A patch to make frequency estimates tighter

Comment 3 Phil Copeland 2002-04-30 21:53:31 UTC
I've changed the cpu_hz[] table entries for EV4 and LCA4 to have a low bound of
100MHz.

There were some TurboChannel machines (Pelica at least) with freq less than
150MHz

Phil
=--=

Comment 4 Phil Copeland 2002-08-12 19:08:23 UTC
Current release (RH 7.2 Alpha)


Note You need to log in before you can comment on or make changes to this bug.