Re: ntp problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 07 December 2005 16:56, Jean-Christian de Rivaz wrote:
>Gene Heskett a écrit :
>> And, acpi is on, and ntpd is happy with the new bios.  Hurrah!
>
>Good news!
>
>I wonder if it would be a good idea to add something into the kernel
> or into ntpd to alert the users that ntpd can't run normaly because
> of a too fast drift ? Then a BIOS upgrade could be proposed
> (especially on a nForce2 system). I don't know if it's even
> realistc.
>
>Regards,

I don't know as this is a kernel issue in this case.  So if warning are 
to be output to the logs, then they really should come from ntpd IMO.

Frankly, the existing log output from ntpd sucks.  Once it has output a 
msg saying:
 8 Dec 16:38:20 ntpd[1966]: kernel time sync enabled 0001
it is totally mute until:
11 Dec 10:47:29 ntpd[1966]: synchronized to 64.112.189.11, stratum 2
11 Dec 13:04:34 ntpd[1966]: synchronized to 80.96.123.120, stratum 2

Nearly 3 days of silence, during which time it updated the contents of 
the drift file at least 20 times is rather hard to swallow when you 
are trying to see what its doing.  So I have another script being 
started in /etc/init/ntpd that fires off at 30 minute intervals, cats 
the contents of the drift file to the log & runs an instance of ntpq 
-p >>ntp.log.

That looks like this (excuse the word wrap please):
drift=4.353
     remote           refid      st t when poll reach   delay   offset  
jitter
==============================================================================
+time.uswo.net   128.10.252.6     2 u  126 1024  377   85.553   -1.657   
0.167
+rrcs-24-172-8-1 80.64.135.105    3 u  200 1024  377   73.522    6.885   
3.648
*ecoca.eed.usv.r 80.96.120.253    2 u  200 1024  377  206.528    2.798   
3.468
 LOCAL(0)        LOCAL(0)        10 l   39   64  377    0.000    0.000   
0.001

A bit voluminous perhaps, but it sure gives me a much better picture of 
whether I can set my $25 Casio wristwatch to somewhere near the real 
time.  And, now that I've determined it is working, I could shut it 
off, but what happens then when I reboot to a new kernel and foo, bar, 
and baz are all on the missing list as has happened several times?  So 
I'll leave it running until I feel I can realy trust it.

I guess my point is, if we are to have a time synchronizer utility, it 
either should work, or raise hell & stomp its feet all over the logs 
once it determines that it cannot work correctly.  ntpd as implemented 
right now has a very bad case of laringitis(sp).

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should use this
address: <[email protected]> which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux