From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,c75be575b1173849 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-10-22 09:20:05 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!cyclone.bc.net!tabloid.srv.ualberta.ca!not-for-mail From: Michal Jaegermann Newsgroups: comp.os.linux.alpha Subject: Re: ntp: clock drift under load Date: Wed, 22 Oct 2003 16:11:02 +0000 (UTC) Organization: Disorganized Bits Message-ID: References: <1473315.C2p56bTQqq@ulrich.design-d.de> NNTP-Posting-Host: gortel.phys.ualberta.ca X-Trace: tabloid.srv.ualberta.ca 1066839062 2176 129.128.7.128 (22 Oct 2003 16:11:02 GMT) X-Complaints-To: abuse@ualberta.ca NNTP-Posting-Date: Wed, 22 Oct 2003 16:11:02 +0000 (UTC) User-Agent: tin/1.5.13-20020614 ("Sugar") (UNIX) (Linux/2.4.20-20.7 (i686)) Xref: archiver1.google.com comp.os.linux.alpha:76 Keith Harwood 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