From owner-freebsd-current@FreeBSD.ORG Sat Aug 16 09:50:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1D3F37B419 for ; Sat, 16 Aug 2003 09:50:19 -0700 (PDT) Received: from serio.al.rim.or.jp (serio.al.rim.or.jp [202.247.191.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3136C447F1 for ; Sat, 16 Aug 2003 07:52:21 -0700 (PDT) (envelope-from matoba@st.rim.or.jp) Received: from mail5.rim.or.jp by serio.al.rim.or.jp (3.7W/HMX-13) id XAA21272; Sat, 16 Aug 2003 23:52:13 +0900 (JST) Received: from localhost (ntkngw026020.kngw.nt.adsl.ppp.infoweb.ne.jp [61.210.40.20]) by mail5.rim.or.jp (8.9.3/3.7W) id XAA16046; Sat, 16 Aug 2003 23:52:12 +0900 (JST) Date: Sat, 16 Aug 2003 23:31:18 +0900 (JST) Message-Id: <20030816.233118.730549892.matoba@st.rim.or.jp> To: phk@phk.freebsd.dk From: MATOBA Hirozumi In-Reply-To: <18962.1061022333@critter.freebsd.dk> References: <20030816.120621.846933691.matoba@st.rim.or.jp> <18962.1061022333@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: thorsten.greiner@web.de cc: nate@root.org Subject: Re: clock works slowly when I change CPU speed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 16:50:25 -0000 On Sat, 16 Aug 2003 10:25:33 +0200 "Poul-Henning Kamp" wrote: | In message <20030816.120621.846933691.matoba@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@repoman.freebsd.org> From: Poul-Henning Kamp 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@st.rim.or.jp