Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "dmesg -T" date doesn't match "date" output

On Sunday 2018-10-28 13:16 +1100, Geoff Wing output:
:I'm running the same -current build on two x64 machines.  One is a VM
:and the other is bare-metal.  I'm rebuilding in case something funny
:happened in the build and noone else can reproduce anything similar.
:The ntpdate in /var/run/rc.log said it updated 0.3 secs and both machines
:had time differences of 5-6 secs between dmesg / date commands.

I suspect it may be that boottime is being set late.

My dmesg has:
[     6.730563] root on sd0a dumps on sd0b
[     6.730563] root file system type: ffs
[     6.730563] kern.module.path=/stand/amd64/8.99.25/modules

From my quick look, sys/kern/init_main.c:666 initialises boottime
after mounting the root file system, so "dmesg -T" is using a bad


Home | Main Index | Thread Index | Old Index