From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-mips@linux-mips.org
Subject: Re: Updating RTC with date command
Date: Tue, 19 Jul 2005 17:20:08 +0200 [thread overview]
Message-ID: <20050719152008.GG20065@lug-owl.de> (raw)
In-Reply-To: <Pine.LNX.4.61L.0507191555360.10363@blysk.ds.pg.gda.pl>
[-- Attachment #1: Type: text/plain, Size: 2712 bytes --]
On Tue, 2005-07-19 16:06:21 +0100, Maciej W. Rozycki <macro@linux-mips.org> wrote:
> On Tue, 19 Jul 2005, Jan-Benedict Glaw wrote:
>
> > hwclock is the userspace utility to manually once set the time. In
> > normal operation, this should only be called _once_, after the system is
> > switched on for the very first time.
>
> Well, `hwclock' should normally be used to update the RTC every time
> after a manual system clock update.
Which of course should only be done once. Ever :)
> > During lifetime, ntpd should execute and thus the system's current time
> > will be written to the HW clock every now and then. Additionally, most
>
> Note that ntpd only updates minutes and seconds and then only if the
> difference is small -- to account for the existence of time zones and a
> system-specific relation between the time recoreded by the system and one
> handled by the RTC. Also the feature is broken by design -- ntpd
> shouldn't do that at all in principle and in practice it leads to the
> system time being corrupted on some machines using an RTC interrupt for
> the system timer tick.
Aren't we expected to keep UTC time inside the HW clock? So there's no
problem with timezones. Also, if your timer interrupt source it that
broken that ntpd cannot track it, then you're having more servere
problems...
> > distributions seem to also update the HW clock at system shutdown time.
>
> Which is where it should really happen.
I disagree. IFF there's a known good time, it's acceptable to write it
into a backing HW clock. In case there isn't (any longer), it's probably
better to not write to the HW clock at all. Probably it's contents is
better than a wrongly manually adjusted local date setting...
I do trust ntpd, but do I trust someone who looks at it's watch?
> > So the correct solution to your problem is to either shutdown once
> > (workaround) or keep ntpd running (the solution[tm]).
>
> I think you've got the figures reversed (well, it's useful to have ntpd
> running, but it should not fiddle with the RTC).
Well, I stated my oppinion. Maybe ntpd shouldn't set the clock (or make
the kernel set it internally), but for sure I don't want the HW clock
being set by hand (except very first power-up of the system) and by no
means if local time came up from a manual process.
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Buerger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-07-19 15:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 10:04 Updating RTC with date command Nori, Soma Sekhar
2005-07-19 10:04 ` Nori, Soma Sekhar
2005-07-19 14:31 ` Ralf Baechle
2005-07-19 14:42 ` Jan-Benedict Glaw
2005-07-19 15:06 ` Maciej W. Rozycki
2005-07-19 15:20 ` Jan-Benedict Glaw [this message]
2005-07-19 16:40 ` Maciej W. Rozycki
2005-07-19 23:00 ` Jan-Benedict Glaw
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=20050719152008.GG20065@lug-owl.de \
--to=jbglaw@lug-owl.de \
--cc=linux-mips@linux-mips.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