On Sat, 3 Dec 2022, Michael van Elst wrote: > >timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000 > >hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400) > >timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000 > > >attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0 > > >t1:reed$ date ; time sleep 1 ; date > >Sat Dec 3 00:31:40 UTC 2022 > > 5.01s real 0.00s user 0.00s system > >Sat Dec 3 00:31:45 UTC 2022 > > > Can you check > > sysctl kern.timecounter.choice > sysctl kern.timecounter.hardware > > Maybe you use a mis-calibrated TSC ? The ACPI-Fast and hpet0 counters > look reasonable.
$ sysctl kern.timecounter.choice kern.timecounter.choice = TSC(q=-100, f=2992621950 Hz) clockinterrupt(q=0, f=100 Hz) ichlpcib0(q=1000, f=3579545 Hz) hpet0(q=2000, f=14318180 Hz) ACPI-Fast(q=1000, f=3579545 Hz) lapic(q=-100, f=997371786 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, f=1000000 Hz) $ sysctl kern.timecounter.hardware kern.timecounter.hardware = hpet0 I looked at sysctl(7) and I set it to ACPI-Fast, ichlpcib0, i8254, TSC, and back to hpet0 but no noticable change.