From: Ingo Molnar <mingo@elte.hu>
To: John Stultz <johnstul@us.ibm.com>
Cc: Miroslav Lichvar <mlichvar@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [GIT pull] ntp updates for 2.6.31
Date: Wed, 17 Jun 2009 18:51:00 +0200 [thread overview]
Message-ID: <20090617165100.GD25357@elte.hu> (raw)
In-Reply-To: <1245253102.6067.94.camel@jstultz-laptop>
* John Stultz <johnstul@us.ibm.com> wrote:
> On Tue, 2009-06-16 at 14:52 +0200, Miroslav Lichvar wrote:
> > On Tue, Jun 16, 2009 at 11:06:47AM +0200, Ingo Molnar wrote:
> > >
> > > * john stultz <johnstul@us.ibm.com> wrote:
> > >
> > > > Linus,
> > > > You probably didn't see this before merging. Could you yank the
> > > > above two patches? Miroslav (RH package maintainer for ntpd), has
> > > > voiced concerns that the SHIFT_PLL patch breaks the NTP design and is
> > > > worried it may negatively effect NTP networks of systems running with
> > > > different SHIFT_PLL values.
> > > >
> > > > While the patch does greatly improve NTP convergence times, and so
> > > > far no negative results have been seen in tests, its out of an
> > > > abundance of caution and a desire to keep the adjtimex behavior
> > > > stable that I requested Thomas and Ingo to hold off on merging
> > > > this patch, while I work with Miroslav to see if we cannot get the
> > > > same benefit by adjusting the userspace NTPd.
> >
> > [..]
> >
> > > Each OS should converge back to the correct time _as fast as
> > > physically possible_. If this is a problem and if someone wants
> > > crappy time and longer periods of convergence for some odd reason
> > > then that header file change can be edited by hand even. It's not
> > > like it's that hard to change, if there's genuine interest.
> > >
> > > So i'm against any revert on this basis. If another basis comes up
> > > we can reconsider of course. What do you think?
> >
> > I think the most important one is following the NTP specification.
> >
> > If Linux really needs to have the fastest PLL, could it be done by
> > modifying the time constant passed in adjtimex structure instead of
> > changing SHIFT_PLL? The PLL response will be exactly the same, but it
> > will allow the applications (and admins) to detect that it is
> > different than expected.
> >
> > Something like:
> >
> > --- a/kernel/time/ntp.c
> > +++ b/kernel/time/ntp.c
> > @@ -425,6 +425,8 @@
> > time_constant = txc->constant;
> > if (!(time_status & STA_NANO))
> > time_constant += 4;
> > + /* We want faster PLL */
> > + time_constant -= 2;
> > time_constant = min(time_constant, (long)MAXTC);
> > time_constant = max(time_constant, 0l);
> > }
>
>
> It looks mathematically equivalent, although I've not had time to
> test it yet. Probably needs a bigger comment :)
>
> The nice thing with this version is that we're able to expose that
> the behavior would be different then other systems, but the other
> side of that coin might be that when the user specifies a
> time_constant value, the interface will show a different one being
> used. This might cause some bug reports saying the interface isn't
> responding properly, or something. Although this is already the
> case for !STA_NANO, and so far few have noticed.
Sounds good to me. It feels a bit quirky that we 'correct' the
user-space provided parameter by 2 ... Definitely needs a big
comment.
Ingo
next prev parent reply other threads:[~2009-06-17 16:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 14:06 [GIT pull] ntp updates for 2.6.31 Thomas Gleixner
2009-06-15 20:16 ` john stultz
2009-06-15 23:41 ` john stultz
2009-06-16 9:06 ` Ingo Molnar
2009-06-16 11:29 ` Thomas Gleixner
2009-06-16 12:52 ` Miroslav Lichvar
2009-06-17 15:38 ` John Stultz
2009-06-17 16:51 ` Ingo Molnar [this message]
2009-06-17 17:23 ` Miroslav Lichvar
2009-06-17 17:26 ` Ingo Molnar
2009-06-17 17:55 ` John Stultz
2009-06-18 12:13 ` Miroslav Lichvar
2009-06-23 9:57 ` Ingo Molnar
2009-06-23 13:16 ` Miroslav Lichvar
2009-06-23 13:36 ` Ingo Molnar
2009-06-23 14:33 ` Miroslav Lichvar
2009-06-23 19:18 ` Ingo Molnar
2009-06-23 19:49 ` Miroslav Lichvar
2009-06-23 21:41 ` john stultz
2009-06-24 9:29 ` Alan Cox
2009-06-24 13:39 ` Martin Schwidefsky
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=20090617165100.GD25357@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mlichvar@redhat.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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