FreeBSD CPU Information

Check CPU Speed in FreeBSD

Type the command at a shell prompt:
# sysctl -a | egrep -i ‘hw.machine|hw.model|hw.ncpu’

Sample output:

hw.machine: amd64
hw.model: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz
hw.ncpu: 4
hw.machine_arch: amd64
So I’ve Intel Xeon quad core processor running at 2.40GHz speed.

You need to use following commands in association with grep command.

FreeBSD CPUINFO using dmesg command

Type the following command
# dmesg | grep -i cpu

Or directly query /var/run/dmesg.boot file
# grep -i cpu /var/run/dmesg.boot

Output:

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!
You can also dump more information using sysctl command
# sysctl -a | grep -i cpu | less

ใส่ความเห็น

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Connecting to %s