一、获取CPU速度
   1.在shell下输入

sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'

   将会得到大概如下输出:

hw.machine: amd64
hw.model: Intel(R) Xeon(R) CPU            3050  @ 2.13GHz
hw.ncpu: 2
hw.machine_arch: amd64


      二、获得更多CPU信息

dmesg | grep -i cpu

    将会得到如下大概输出:

CPU: Intel(R) Xeon(R) CPU            3050  @ 2.13GHz (2133.42-MHz K8-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 828082806000828
p4tcc0: <CPU Frequency Thermal Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 828082806000828
p4tcc1: <CPU Frequency Thermal Control> on cpu1
SMP: AP CPU #1 Launched!