FreeBSD CPU Information
Q. How do I get more information about CPU under FreeBSD such as CPU Speed and model?
A. You can use the dmesg utility displays the contents of the system message buffer when FreeBSD comes up. For accuracy I recommend querying /var/run/dmesg.boot file. Usually a snapshot of the buffer contents taken soon after file systems are mounted at startup time and dumped to /var/run/dmesg.boot file.
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
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Howto: Linux detect or find out a dual-core cpu
- Linux display CPU information - number of CPUs and their speed
- FreeBSD Find out who is logged in?
- FreeBSD admin book / handbook
- Linux Find If Processor / CPU is 64 bit / 32 bit ( long mode ~ lm )
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /var/run/dmesg.boot, amd, apic, check cpu speed, dual core, egrep command, freebsd 64 bit cpu, freebsd cpu speed, grep command, intel, intel xeon quad core, model hw, multiprocessor system, quad core processor, sysctl command, system message



Recent Comments
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments
Yesterday ~ 1 Comment