Re: [chrony-users] Re: Linux time goes wrong after changing the time with 'date' cmd |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: Bill Unruh <unruh@xxxxxxxxxxxxxx>
- Subject: Re: [chrony-users] Re: Linux time goes wrong after changing the time with 'date' cmd
- From: Feng Tang <feng.tang@xxxxxxxxx>
- Date: Mon, 13 May 2024 20:36:47 +0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pM0noNm5QrJul/RixLYG+Ls2YmGPPWRuATM6WhAvYtQ=; b=hnBrMxUJ9fVoW3IngcGyLnGnpseFKE6pLeZcjkcwlQZVHwe2fRbuK2crVmJCTjOvQN+Ji55uLsAxUh/zu6mQNkjPYiRSBsdPG03qfm7og3UByZsJKox3aaPBngRQOWs7PgJJe/NmqCaf4HL5yugwCmLKghK50VgbBgg+9sn60jjP6FznvtZ+9/tgPPHft9qglkOqlABUMxNbFkl5vDqjRkNf+QGXj2sEow/3ftZL/hnLEOOEn2Wg+BHAnkTgiA+ZD6CuuubDHkddyVWe/etVkfEzRXp6vpGM6YHzoSCPBeHSIgUjZqK8NFG/eOjyxDAucoZpmZau+uBAQn9peiyOfw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jlVXmwc2eWp9OY/y91AD2UraWREmb+6deomr6eOEJENSQGmhlLmuiUSMwGjndn0MmtuPMfSBDMao3SDQgdBFyPQdWgLBeR2ALxhiGdDVWAmXlDl67DXmV7tr6am+8N+fccpHrSwMEWycFNWuiMWELv58657qlQAJj1BumoRBYkIVFY8URnJ/wTgUJ0P7NgBWOo1rmGB6GdfDAmF0Fy2DsZ2pwAi5w3eDMqFWPo/nm4+rc9+5egY/+F1xOm4N1m+G+2W+vKf7f8rrI0mzgkO+XpjOc3wj6Cg9FwdBg9id6DPGpptLAwXB747zqfM+63L1FvBPG/kVSMqJsiLCkKOijg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com;
- Cc: <chrony-users@xxxxxxxxxxxxxxxxxxxx>, Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715604707; x=1747140707; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=pM0noNm5QrJul/RixLYG+Ls2YmGPPWRuATM6WhAvYtQ=; b=Al27MsCZy3HuXGZetD6injly4Zv2TAvulmvfuFoJfp6/r0HY8HjjN4YQ ugoVHEbSDsXTu8mN1M3WhISdA7r/N+VUxNHZk35Qubm5lzezxIuPt2ACT wTqQLpTZ0AR/Nx28lHZ7l0zdOIJo93icw7NSI+vBc0MKrIa5NeCOdYnkL jFwRRBEhcrDbAbct2USX8Trw2RKyyEHnVs2vx7mWEKaT8rkHkUb3QZac+ j5BZv3IHIqEC04uSkIP9MXj7KOSnrN5ttYVia8rEGIk3ouOgjGrrDe4H4 eyJyb3yvWwHsDWpfUSomPKl/vL/MPgCf8y8jEAH/ol5OpJLH+LZPxs/aJ A==;
On Mon, May 13, 2024 at 04:00:33AM -0700, Bill Unruh wrote:
>
> On Mon, 13 May 2024, Feng Tang wrote:
>
> > [CAUTION: Non-UBC Email]
> >
> > Hi Miroslav Lichvar,
> >
> > On Mon, May 13, 2024 at 08:19:07AM +0200, Miroslav Lichvar wrote:
> > > On Mon, May 13, 2024 at 09:02:31AM +0800, Feng Tang wrote:
> > > > So my thought is, since user already chose to trust 'chrony', and
> > > > when chrony has more realiable NTP time source, 'chrony' can help to
> > > > correct the 'wrong date' set by user with the right time, practically
> > > > 'rejecting' the huge time jump set by users.
> > >
> > > chronyd is trying to correct the clock, but a typical default
> > > configuration provided with distro packages allows steps only on
> > > start, so the ~10% slew can take very long time.
> >
> > Yes, exactly. In the above case, we saw the system time was compensated
> > very slowly.
>
> It slews at 1 sec per 10 sec. if the clock is way out.
Got it, thanks
> >
> > >
> > > The user would need to allow steps at any time. See this answer in
> > > the FAQ:
> > > https://chrony-project.org/faq.html#_is_chronyd_allowed_to_step_the_system_clock
> >
> > This works great in my test and the issue can't be reproduced. Many
> > thanks for the hint!
>
> BUT you have to tell you users NOT to change the clock on their own. DO NOT
> USE date to change the clock. If your users are going to do idiotic things
> there is nothing you can do to correct all of their idiocies. Do not do it "as
> a test" It is not a test. Nothing will ever make the clock suddeny jump
> time. NOt allowing your clocks to jump may well produce worse things that
> you are
> complaining of now.
Sure, will communicate about that.
Thanks,
Feng
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.