Re: ntpd vs ntpdate with no hardware clock

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sun, 07 Jul 2024 17:54:07 UTC
On Jul 7, 2024, at 10:23, bob prohaska <fbsd@www.zefox.net> wrote:

> On Sun, Jul 07, 2024 at 11:18:56AM -0600, Warner Losh wrote:
>> On Sun, Jul 7, 2024, 11:16 AM Ronald Klop <ronald-lists@klop.ws> wrote:
>> 
>>> I created fakertc for my rpi4.
>>> 
>>> https://www.freshports.org/sysutils/fakertc/
>>> 
>>> Saves the time on shutdown and sets it back early at boot.
>>> 
>>> Plus I use ntpdate together with ntpd. Works fine.
>>> 
>> 
>> Curious why the root mod time isn't firing... it whould alrwady do that
>> 
> Root mod time seems fairly laggy:
> rprohask@www:~ % date
> Sun Jul  7 10:20:38 PDT 2024
> rprohask@www:~ % ls -al /
> total 97
> drwxr-xr-x  20 root wheel     512 Jul  5 13:21 .
> drwxr-xr-x  20 root wheel     512 Jul  5 13:21 ..
> unless I'm misusing ls -al, of course....

I mount with noatime in use. Do you?

Are you trying to show:

time when file was created (-Ul)
time when file status was last changed (-cl)
time when file was last modified (-l)
time of last access (-ul)

You implicitly specified "last modified". So
when was the last change to the root directory
representation? It likely is not modified often.
(Modifications to file content and subdirectories
would not modify / of itself.)

linux can have relatime vs. strictatime modes.
relatime mode updates the atime less often, via
a rule set. A linux can have relatime by default.

===
Mark Millard
marklmi at yahoo.com