mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Kristofer T. Karas" <ktk@enterprise.bidmc.harvard.edu> (by way of Kristofer T. Karas <ktk@enterprise.bidmc.harvard.edu>)
To: linux-kernel@vger.kernel.org
Subject: Re: [ntp:hackers] Linux feature
Date: Tue, 16 Oct 2001 14:27:05 -0400	[thread overview]
Message-ID: <200110161827.f9GIR5m09115@enterprise.bidmc.harvard.edu> (raw)

> On 15 Oct 2001, at 21:16, David L. Mills wrote:
> > My Linux test box backroom.udel.edu has gone nuts. [...]
> > However, the step correction requested is only partially implemented
> > by the Linux kernel, so the frequency correction is in error. [...]

The slew rate in the kernel (sans PPSkit patch) is small relative to other
implementations; and the error in the clock circuitry of the typical PC is
worse than other implementations; and the kernel default is to talk to IDE
disk drives with interrupts disabled, unless you tell it your IDE drive is
not so crippled.  All of these compound the timekeeping problem, perhaps to
the point where the slew rate simply cannot compensate.  If this is the case,
then you could expect to see a time offset curve that approximates a sawtooth
wave, with step adjustments occurring on the sharp edge.  I don't have enough
data  to know if that's what's happening here.

I would use the 'adjtimex' program when booting your test platform to ensure
the tick value is optimal.  Also, issue the command "hdparm -u 1 /dev/hda" if
your test platform uses an IDE disk; warning: if you have an old vintage box,
this could cause harm, so read the man page for 'hdparm'.

On Tuesday 16 October 2001 02:48 am, Ulrich Windl wrote:
> I think in standard Linux a running
> adjtime() continues even after setting the time, and MOD_OFFSET and
> adjtime() both use the same variable, so don't expect the other to
> finish once you have used one of both. Is that the problem?

Uh, unless I'm totally whacked, I should think so.  Once a step adjustment
has been made, the very data from which a slew adjustment is calculated is no
longer relevant; continuing to slew will undo the good of the step, worsening
timekeeping but in the other direction (leading to oscillation if the slew is
not cancelled or adjusted).

> > One more example where Linux refuses to conform to
> > conventional semantics. Game over.

Dave, "Game Over" is not a terribly helpful strategy if the goal is to help
Linux do the right thing.  Better would be if you would look at the code in
question and provide some constructive critique.  Ulrich and the people on
linux-kernel will cheerfully implement needed functionality if the father of
the mechanism blesses it so.

Kris

             reply	other threads:[~2001-10-16 18:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16 18:27 Kristofer T. Karas [this message]
     [not found] <3BCB4401.E2E84470@udel.edu>
2001-10-16  6:48 ` Ulrich Windl

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=200110161827.f9GIR5m09115@enterprise.bidmc.harvard.edu \
    --to=ktk@enterprise.bidmc.harvard.edu \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®