Date: Fri, 15 Aug 2003 23:55:59 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Thorsten Greiner <thorsten.greiner@web.de> Cc: nate@root.org Subject: Re: clock works slowly when I change CPU speed Message-ID: <3F3DD57F.5848FD64@mindspring.com> References: <11229.1060970608@critter.freebsd.dk> <1060978640.603.11.camel@localhost> <20030815205047.GA719@tybalt>
next in thread | previous in thread | raw e-mail | index | archive | help
Thorsten Greiner wrote: > * Bob Fleck <bob@securesoftware.com> [2003-08-15 22:46]: > > So, what should be done to restore the proper behavior of the > > timekeeping on these systems? > > $ dmesg | grep counter > Timecounter "i8254" frequency 1193182 Hz > Timecounter "ACPI-fast" frequency 3579545 Hz > Timecounter "TSC" frequency 1595302164 Hz > $ sysctl -w kern.timecounter.hardware=i8254 > > Fixes the problem for me. I suspect you should set this in > /etc/sysctl.conf to enable it permanently. I suspect that systems where ACPI indicates that the clock speed may change as a result of power management events should set this automatically so people don't have to hack up their system with sysctl's just to get things to work, when it's well known that the system selecting TSC by default on systems with a variable processor speed will experience problems otherwise. I'm guessing what changes in the patches is that the default for preferred clock changed to the wrong thing. -- Terry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F3DD57F.5848FD64>