clock works slowly when I change CPU speed
MATOBA Hirozumi
matoba at st.rim.or.jp
Sat Aug 16 09:50:25 PDT 2003
On Sat, 16 Aug 2003 10:25:33 +0200 "Poul-Henning Kamp" wrote:
| In message <20030816.120621.846933691.matoba at st.rim.or.jp>, MATOBA Hirozumi wri
| tes:
| > On Fri, 15 Aug 2003 22:50:47 +0200 Thorsten Greiner wrote:
| >| $ 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.
| >Thank you for your advice.
| I've given timecounters "qualities" which should solve this problem.
Thank you.
I searched in cvs-all mailing-list archive about it,
and found at:
Message-Id: <200308160823.h7G8NrAv045177 at repoman.freebsd.org>
From: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sat, 16 Aug 2003 01:23:53 -0700 (PDT)
Subject: cvs commit: src/sys/sys timetc.h src/sys/kern kern_tc.c
src/sys/dev/acpica acpi_timer.c src/sys/i386/i386 tsc.c
src/sys/i386/isa clock.c
Then I did cvsup on Date: 16 Aug 2003 17:55 +900 (JST) on my ThinkPad A22e,
and checked :
the value of kern.timecounter.hardware is ACPI-fast
(without changing by sysctl -w)
the clock works normally at any CPU settings
(hw.acpi.cpu)
$ dmesg | grep counter
Timecounter "i8254" frequency 1193182 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
Timecounter "TSC" frequency 797050143 Hz quality 800
Timecounters tick every 10.000 msec
$ sysctl kern.timecounter
kern.timecounter.nbinuptime: 105755
kern.timecounter.nnanouptime: 3
kern.timecounter.nmicrouptime: 635
kern.timecounter.nbintime: 38493
kern.timecounter.nnanotime: 5
kern.timecounter.nmicrotime: 38488
kern.timecounter.ngetbinuptime: 0
kern.timecounter.ngetnanouptime: 4
kern.timecounter.ngetmicrouptime: 4186
kern.timecounter.ngetbintime: 0
kern.timecounter.ngetnanotime: 18
kern.timecounter.ngetmicrotime: 30494
kern.timecounter.nsetclock: 3
kern.timecounter.hardware: ACPI-fast
kern.timecounter.choice: TSC(800) ACPI-fast(1000) i8254(0) dummy(-1000000)
kern.timecounter.tick: 1
files:
/boot/loader.conf.local:
hint.acpi.0.disabled="0"
hint.apm.0.disabled="1"
hw.acpi.verbose="1"
hw.ata.atapi_dma="1"
if_fxp_load="YES"
snd_ich_load="YES"
/etc/sysctl.conf:
hw.acpi.lid_switch_state=NONE
hw.acpi.suspend_state=NONE
hw.acpi.sleep_delay=5
hw.acpi.cpu.performance_speed=4
kernel config file:
alomost the same as GENERIC,
except for commented out Ethernet drivers
(all the lines from "device de" to "device wi",
and two lines "device aue","device axe")
--
matoba at st.rim.or.jp
More information about the freebsd-current
mailing list