[ntp:questions] Taming statistics files (was: Re: ntp documentation)

2008-01-05 Thread David J Taylor
Richard B. Gilbert wrote:
[]
 filegen creates a new file daily or weekly or monthly. . . .
 These files can eat many megabytes of disk space if you let them.  If
 you're not prepared to analyze and summarize all the data, do
 yourself a favor and skip creating the files.  The tools to do so are
 included in the ntpd distribution but you do have to find them, and
 use them and then clean up the obsolete files. . . .

I wrote a small utility I have found very handy on my systems:

  http://www.david-taylor.myby.co.uk/software/disk.html#TrimTree

It allows you to delete files matching a wildcard mask which are more than 
a certain number of days old, so you could, for example, keep just a 
week's worth of loopstats by running a nightly command:

  trimtree   7   C:\Tools\NTP\etc\   loopstats.2*

It's helped a few other folk as well.

Cheers,
David 


___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] ntp documentation

2008-01-05 Thread David J Taylor
Unruh wrote:
 Dennis Hilberg, Jr. [EMAIL PROTECTED] writes:
[]
 The official NTP docs are in html format only.

 And impossible to wade through. Could you tell me where the
 statistics and the peerstats directives are actually discussed?
 Trying to look at those docs gives me no hint.

 Ie, what is needed is like in the man page-- a list of the config
 variables and options with a brief description.

Try using a search engine, e.g. Google with:

  site:www.eecis.udel.edu peerstats

I agree that it's not always easy to find things in the HTML, but that's a 
function of the content, not the document format.  Section 8.1.2 discusses 
peerstats and loopstats:

  http://www.eecis.udel.edu/~ntp/ntpfaq/NTP-s-trouble.htm


BTW: none of the systems I use support man pages - but they can all read 
HTML documents, so please don't take the HTML away!

Cheers,
David 


___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] ntp documentation

2008-01-05 Thread Dennis Hilberg, Jr.
Unruh wrote:
 Richard B. Gilbert [EMAIL PROTECTED] writes:
 
 Unruh wrote:
 Where is there ntp documentation? For example I wanted to have ntp write
 out the statistics  on its peers etc. I looked everywhere-- man page of
 ntp, ntp.conf, etc, and finally discovered by looking at the source that
 there seem to be a huge bunch of undocumented options. 
 Or are they documented somewhere in that filing cabinette down some broken
 steps in a flooded basement, behind a door labeled Beware of Tigers


 
 You'll find the secret staircase at ntp.org.  The humidity may be a 
 little high in the basement but it's not actually wet.  ;-)
 
 This snippet from my ntp.conf might help:
 
 logfile /var/ntp/ntp.log
 statsdir /var/ntp/ntpstats/
 statistics peerstats clockstats
 filegen peerstats file peerstats type day enable
 filegen clockstats file clockstats type day enable
 
 But where did you find those options? for example I finally did 
 statistics peerstats
 and the system set up a daily and total couple of files in /var/log/ntp (
 my statsdir) 
 What does filegen do and mean? Do I need it? I should have some docs where
 I can easily find that. Does it exist?

Those are explained on the Monitoring Options page, here: 
http://www.eecis.udel.edu/~mills/ntp/html/monopt.html

You might try using the site map for the docs.  It was recently added (I 
think) and is a lot of help. 
http://www.eecis.udel.edu/~mills/ntp/html/sitemap.html

-- 
Dennis Hilberg, Jr.  timekeeper(at)dennishilberg(dot)com
NTP Server Information:  http://saturn.dennishilberg.com/ntp.php

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] Leap second bug?

2008-01-05 Thread David Malone
David L. Mills [EMAIL PROTECTED] writes:

The intended behavior if the servers do correctly signal a leap and the 
kernel is unaware of that, is that the step interval will be exceeded 
for about 15 minutes and then the time will be stepped. During that 
interval your clock will appear one second slow relative to the server 
that has correctly inserted a second. There will be no slew, onlly the 
step. The fact that your time showed otherwise suggests either the step 
has been disabled or something else comes unstuck. Our clocks here 
showed no such behavior as yours.

During the 2005 leap second, I did see some of our peers show an
offset of 0.5 seconds for reasons that I don't understand.  For
example, see the last graph on this page:

http://www.maths.tcd.ie/~dwmalone/time/leap2005_peers.html

It wasn't the only example - several other peers showed an offset
of near 0.5 seconds after the leap - you can find those through the
more graphs of other peers link at the bottom of the page.

David.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] quirky adjtimex behaviour

2008-01-05 Thread Jan Ceuleers
Hi Dean.

Dean S. Messing wrote:
 Can I however suggest that you first try and eliminate CPU frequency 
 scaling as a cause of the symptoms you're seeing: use cpufreq-set -g to 
 select a policy that results in a constant CPU frequency and then check 
 if this changes the behaviour (or renders it more predictable).
...
 analyzing CPU 0:
   no or unknown cpufreq driver is active on this CPU
...

OK, this eliminates CPU frequency scaling as the cause of your problem.

Sorry to have sent you off on a tangent; from recent experience this 
seemed like a promising low-hanhing fruit (but it turned out not to be).

 analyzing CPU 1:
   no or unknown cpufreq driver is active on this CPU
 analyzing CPU 2:
   no or unknown cpufreq driver is active on this CPU
 analyzing CPU 3:
   no or unknown cpufreq driver is active on this CPU
...
 If you or others wouldn't mind reading my whole original post (it's
 not _that_ long :-) maybe some other ideas might occur.  Thanks.

Sorry, I haven't a clue. Also note that I don't have any experience with 
SMP at all (let alone timekeeping on SMP machines). I'm very interested 
in this subject, but I've never been able to justify the hardware cost 
just so that I could play around with this.

Cheers, Jan

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] ntp documentation

2008-01-05 Thread Steve Kostecke
On 2008-01-05, Unruh [EMAIL PROTECTED] wrote:

 OK, I guess daily is the default if you just use the statistics
 peerstats But the key question is where in the world is the
 documentation for all of this?

http://www.eecis.udel.edu/~mills/ntp/html/monopt.html

Since you know the site where the Distribution Documentation is based
(from my previous article) you could search for this information on Google
as:

site:www.eecis.udel.edu+keyword+keyword

-- 
Steve Kostecke [EMAIL PROTECTED]
NTP Public Services Project - http://support.ntp.org/

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] The smallest possible ntpd, unoptimized

2008-01-05 Thread Uwe Klein
Pierre Dubuc wrote:

 It seems -O0 is needed, at least for building the daemon, on NetBSD-i386 
 on a 486SX.
 
 Case closed for me.

did you try the 386 specific flag:
-msoft-float

uwe

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] ntp documentation

2008-01-05 Thread Unruh
Dennis Hilberg, Jr. [EMAIL PROTECTED] writes:

Unruh wrote:
 Richard B. Gilbert [EMAIL PROTECTED] writes:
 
 Unruh wrote:
 Where is there ntp documentation? For example I wanted to have ntp write
 out the statistics  on its peers etc. I looked everywhere-- man page of
 ntp, ntp.conf, etc, and finally discovered by looking at the source that
 there seem to be a huge bunch of undocumented options. 
 Or are they documented somewhere in that filing cabinette down some broken
 steps in a flooded basement, behind a door labeled Beware of Tigers


 
 You'll find the secret staircase at ntp.org.  The humidity may be a 
 little high in the basement but it's not actually wet.  ;-)
 
 This snippet from my ntp.conf might help:
 
 logfile /var/ntp/ntp.log
 statsdir /var/ntp/ntpstats/
 statistics peerstats clockstats
 filegen peerstats file peerstats type day enable
 filegen clockstats file clockstats type day enable
 
 But where did you find those options? for example I finally did 
 statistics peerstats
 and the system set up a daily and total couple of files in /var/log/ntp (
 my statsdir) 
 What does filegen do and mean? Do I need it? I should have some docs where
 I can easily find that. Does it exist?

Those are explained on the Monitoring Options page, here: 
http://www.eecis.udel.edu/~mills/ntp/html/monopt.html

Ah. Finally. Yes, that is exactly the kind of thing I was looking for and
could not find. Thanks. Those configuration pages should all be in the
ntp.conf man page, instead of only some of them.


You might try using the site map for the docs.  It was recently added (I 
think) and is a lot of help. 
http://www.eecis.udel.edu/~mills/ntp/html/sitemap.html

-- 
Dennis Hilberg, Jr.  timekeeper(at)dennishilberg(dot)com
NTP Server Information:  http://saturn.dennishilberg.com/ntp.php

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] ntp documentation

2008-01-05 Thread Unruh
Richard B. Gilbert [EMAIL PROTECTED] writes:

Unruh wrote:
 Richard B. Gilbert [EMAIL PROTECTED] writes:
 
 
Unruh wrote:

Richard B. Gilbert [EMAIL PROTECTED] writes:



Unruh wrote:


Where is there ntp documentation? For example I wanted to have ntp write
out the statistics  on its peers etc. I looked everywhere-- man page of
ntp, ntp.conf, etc, and finally discovered by looking at the source that
there seem to be a huge bunch of undocumented options. 
Or are they documented somewhere in that filing cabinette down some broken
steps in a flooded basement, behind a door labeled Beware of Tigers



You'll find the secret staircase at ntp.org.  The humidity may be a 
little high in the basement but it's not actually wet.  ;-)


This snippet from my ntp.conf might help:


logfile /var/ntp/ntp.log
statsdir /var/ntp/ntpstats/
statistics peerstats clockstats
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


But where did you find those options? for example I finally did 
statistics peerstats
and the system set up a daily and total couple of files in /var/log/ntp (
my statsdir) 
What does filegen do and mean? Do I need it? I should have some docs where
I can easily find that. Does it exist?





 
filegen creates a new file daily or weekly or monthly. . . .
These files can eat many megabytes of disk space if you let them.  If 
you're not prepared to analyze and summarize all the data, do yourself a 
favor and skip creating the files.  The tools to do so are included in 
the ntpd distribution but you do have to find them, and use them and 
then clean up the obsolete files. . . .
 
 
 
 OK, I guess daily is the default if you just use the 
 statistics peerstats
 But the key question is where in the world is the documentation for all of
 this?
 
 
 

Same place as the rest of the doc.  Have you looked in the html 
directory??  The stuff will display in your browser if you use the 
FILE://... syntax.  The HTML is formatted so as to be almost as readable 
  as plain text if you open it in an editor.

Thanks.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] quirky adjtimex behaviour

2008-01-05 Thread Hal Murray

I am seeing strange behaviour on my _x86_64 Fedora 7 desktop
workstation with regard to the system-cmos time that `adjtimex'
reports.

That leaves the RTC doing the jumping.  But having an RTC that is
runing nearly 1 ppm slower than my system clock and which jumps
ahead every 10 seconds seems absurd.

It seems that leaves two other possibilities: a bug in adjtimex or a
bug in the kernel.  That's where I am right now.

My guess is that the system/kernel is working correctly and that
the adjtimex utility is printing out misleading stuff.

The CMOS/hardware clock only returns the time to the nearest second.
I think that would cause quirks like this if the code has a loop that
does a bit of work and sleeps for N seconds and the bit of work
takes 0.1 second the time when the CMOS clock is read will drift
by 0.1 second each time around the loop.

If you want to play and you can find the source, try changing
the code that reads the CMOS clock to spin in a loop reading
it until it changes.  That will give you the time early in the
second.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] Distribution security

2008-01-05 Thread Hal Murray

When I wrote that I was unaware of the html page.  I'm a Unix guy and I
generally don't even consider looking for html docs - I am used to (and
expect) man pages.

Me too.

Would it help to ship dummy man pages that just pointed to
the html documentation?

-- 
These are my opinions, not necessarily my employer's.  I hate spam.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] Leap second bug?

2008-01-05 Thread Unruh
[EMAIL PROTECTED] (David Woolley) writes:

In article [EMAIL PROTECTED],
Unruh [EMAIL PROTECTED] wrote:

 and the time required to timestamp that packet is about another 2usec, with
 fluctuations depending on whether other interrupts are being serviced.

On both Linux and Windows, interrupt latencies of more than 4ms and
even more than 10ms are quite common.  The interrupt processing time

I hope you mean 4 or 10usec, not msec.


from the idle loop is not a good indication of the timing on a system
doing real work.  (The above figures are based on clock interrupts 
overrunning at 250 Hz and 100 Hz clock frequencies, typically when doing
IDE disk I/O.)

Although you might not have. 
The figures I got were on an active machine, although often not used that
much.



___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions