All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <michael@ellerman.id.au>
To: Hal Murray <hmurray@megapathdsl.net>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Hugh Blemings <hugh@blemings.org>,
	linuxppc-dev@ozlabs.org, devel@ntpsec.org,
	Paul Mackerras <paulus@ozlabs.org>
Subject: Re: Timekeeping oddities on MacMini G4s
Date: Tue, 07 Feb 2017 13:21:40 +1100	[thread overview]
Message-ID: <87h946g2q3.fsf@concordia.ellerman.id.au> (raw)
In-Reply-To: <20170201075630.3E8FB406061@ip-64-139-1-69.sjc.megapath.net>

Hal Murray <hmurray@megapathdsl.net> writes:

> benh@kernel.crashing.org said:
>> Ok, I do have one though somewhere with OS X on it. If you give me
>> instructions on how to test (I know near to nothing about ntpsec), I should
>> be able to compile and run it.
>
> I'm assuming you are already running the normal ntpd from ntp classic, or 
> Apple's version of it.
>
> ntpq -c "rv 0 frequency" <host-name, defaults to localhost>
> will get you the fudge-factor that ntpd passes to the kernel to get
> the clock ticking accurately.  Units are parts-per-million.
>
> There is a source-address filter in ntp.conf (restrict is the keyword), so 
> try from localhost if it doesn't work from the net.
>
> The problem that started this is that it's off by more than 500 ppm.  If all 
> the arithmetic and documentation is correct, it should be the crystal error.  
> A few or few 10s of ppm is reasonable at normal temperature.  Over 50 is a 
> bit strange, but anything under 100 is within normal.  Over 100 is getting 
> suspicious but could easily be due to some round off someplace.
>
>
>
> ntpsec should be the same as ntp classic.  I tried ntp classic on FreeBSD 
> (same trouble) but haven't tried it on Debian.
>
> If you want to try ntpsec...
>
> git clone git@gitlab.com:NTPsec/ntpsec.git xxx
> cd xxx
> ./waf configure build check
>
> I think it builds cleanly on OS-X, but I can't verify that.
>
> ps ax | grep ntpd  # to get args
> service ntpd stop
> ./build/main/ntpd/ntpd <args-from-above>
>
> Unless you are doing something unusual, it should run with your existing 
> ntp.conf and get the same frequency correction.

What do I do if I don't have an existing ntp.conf ?

cheers

  parent reply	other threads:[~2017-02-07  2:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-01  3:10 Timekeeping oddities on MacMini G4s Hugh Blemings
2017-02-01  3:34 ` Benjamin Herrenschmidt
2017-02-01  6:59   ` Hal Murray
2017-02-01  7:13     ` Benjamin Herrenschmidt
2017-02-01  7:56       ` Hal Murray
2017-02-05  0:19         ` Fred Wright
2017-02-05  3:32           ` Hal Murray
2017-02-05 15:36             ` Frank Nicholas
2017-02-06  5:59               ` Hal Murray
2017-02-05 23:22           ` Benjamin Herrenschmidt
2017-02-06  2:12             ` Segher Boessenkool
2017-02-07  2:21         ` Michael Ellerman [this message]
2017-02-07  9:56           ` Hal Murray
     [not found] <1316061184.389961.1486121485729@mail.yahoo.com>
2017-02-03 11:41 ` Jochen Rollwagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h946g2q3.fsf@concordia.ellerman.id.au \
    --to=michael@ellerman.id.au \
    --cc=benh@kernel.crashing.org \
    --cc=devel@ntpsec.org \
    --cc=hmurray@megapathdsl.net \
    --cc=hugh@blemings.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.