Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2004 09:22:57 +0800
From:      "ouyang kai" <oykai@msn.com>
To:        <gemini@geminix.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: a sysctl machdep.tsc_freq problem
Message-ID:  <BAY4-DAV4BVyjh1vPuT00078a19@hotmail.com>

next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,S
SE2,SS,HTT,TM>
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: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82845 Host to PCI bridge> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
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: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci0: <PCI bus> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,
HTT,TM>
real memory  =3D 268435456 (256 MB)
avail memory =3D 255287296 (243 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00fdf30
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> at pcibus 0 on =
motherboard
pci0: <PCI bus> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY4-DAV4BVyjh1vPuT00078a19>