From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 17:25:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5CBF16A4CE for ; Sat, 21 Feb 2004 17:25:33 -0800 (PST) Received: from hotmail.com (bay4-dav4.bay4.hotmail.com [65.54.170.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD39743D1D for ; Sat, 21 Feb 2004 17:25:33 -0800 (PST) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 21 Feb 2004 17:25:33 -0800 Received: from 218.104.107.71 by bay4-dav4.bay4.hotmail.com with DAV; Sun, 22 Feb 2004 01:25:33 +0000 X-Originating-IP: [218.104.107.71] X-Originating-Email: [oykai@msn.com] X-Sender: oykai@msn.com From: "ouyang kai" To: Date: Sun, 22 Feb 2004 09:22:57 +0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: MSN 9 Seal-Send-Time: Sun, 22 Feb 2004 09:22:57 +0800 X-MimeOLE: Produced By MSN MimeOLE V9.00.0011.1200 Message-ID: X-OriginalArrivalTime: 22 Feb 2004 01:25:33.0560 (UTC) FILETIME=[C4441780:01C3F8E2] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-questions@freebsd.org Subject: Re: a sysctl machdep.tsc_freq problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 01:25:34 -0000 Uwe wrote: >Is the P4-1.6G machine a multi-processor system, that is, was the = kernel=20 >compiled with the SMP option? If so, there is currently no TSC support = >on multi-processor systems, for technical reasons I understand. So in=20 >this case 'machdep.tsc.freq' is omitted from the kernel and therefore=20 >cannot be queried. No, there are all UP system. on the P4-1.6G & FreeBSD4.8-release machine, dmesg shows some info: Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz (1614.41-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0xf12 Stepping =3D 2 = Features=3D0x3febfbff real memory =3D 268353536 (262064K bytes) avail memory =3D 257617920 (251580K bytes) Preloaded elf kernel "kernel" at 0xc0377000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 12 entries at 0xc00f15e0 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard .... on the P3-800 & FreeBSD4.9-stable machine, dmesg shows some info: Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 854854067 Hz CPU: Intel Pentium III (854.85-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x686 Stepping =3D 6 = Features=3D0x383fbff real memory =3D 536805376 (524224K bytes) avail memory =3D 519004160 (506840K bytes) Preloaded elf kernel "kernel" at 0xc0341000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 12 entries at 0xc00fdf00 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 ...... on the P4-2.0G & FreeBSD5.2.1-RC machine: dmesg show some info: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2039.74-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0xf28 Stepping =3D 8 = Features=3D0x3febfbff real memory =3D 268435456 (256 MB) avail memory =3D 255287296 (243 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 Using $PIR table, 9 entries at 0xc00fdf30 pcib0: at pcibus 0 on = motherboard pci0: on pcib0 I think the difference is the P4-1.6G machine enable APM-BIOS, if so, = how can I get the CPU speed? Because the CPU speed info in the 'kern.msgbuf' will be rushed after the = machine run a long time and a lot of kernel msg.