Port-amd64 archive

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

Re: Time passing slowly



On Wed, Oct 05, 2016 at 10:58:53AM -0400, Mouse wrote:
> >> [Pavilion - root] 37> date; sleep 10; date
> >> Wed Oct  5 09:47:08 EDT 2016
> >> Wed Oct  5 09:47:10 EDT 2016
> >> [Pavilion - root] 38> 
> 
> > What does:
> 
> >  sysctl kern.timecounter.choice
> 
> > say?
> 
> kern.timecounter.choice = TSC(q=3000, f=11664788060 Hz) clockinterrupt(q=0, f=100 Hz) hpet0(q=2000, f=23999999 Hz) ACPI-Fast(q=1000, f=3579545 Hz) lapic(q=-100, f=24040485 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, f=1000000 Hz)
> 
> And, indeed, setting kern.timecounter.hardware=hpet0 makes the clock
> start behaving itself.

Which CPU is that? TSC should be selected by default only, if the CPU
says it is invariant, but I don't know from memory if that applies on
NetBSD 5 already. hpet and ACPI-fast are slower as they require
(internal) PCI cycles; the LAPIC timer would be a good choice, except
noone ever properly implemented the cross-CPU phase locking for SMP.

Joerg


Home | Main Index | Thread Index | Old Index