hw.model: Intel(R) Xeon(R) CPU X3220 @ 2.40GHzhw.ncpu: 4hw.machine_arch: amd64我的Intel Xeon四核处理器2.40GHz的速度运行。您需要使用下面的命令与grep命令。FreeBSD使用dmesg命令查看CPUINFO:键入以下命令 # dmesg | grep -i cpu Or directly query /var/run/dmesg.boot file # grep -i cpu /var/run/dmesg.boot输出:CPU: Dual Core AMD Opteron(tm) Processor 170 (1999.08-MHz 686-class CPU) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: on acpi0 acpi_throttle0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 SMP: AP CPU #1 Launched!您也可以转储使用sysctl命令的更多信息
查看cpu信息
freebsd# cat /var/run/dmesg.boot |grep CPU
相关知识延伸:查看CPU其它信息
1)cpu ID sysctl hw.model
2)cpu频率 sysctl machdep.tsc_freq