Home arrow FreeBSD Tips arrow Find CPU Info in FreeBSD
Find CPU Info in FreeBSD PDF
Saturday, 07 June 2008

To find info about CPU on your FreeBSD server/desktop use:

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

You will get something like this:

hw.machine: i386
hw.model: Genuine Intel(R) CPU            2140  @ 1.60GHz
hw.ncpu: 1
hw.machine_arch: i386

or use:

grep -i cpu /var/run/dmesg.boot


You will get something like this:

CPU: Genuine Intel(R) CPU            2140  @ 1.60GHz (1606.03-MHz 686-class CPU)
cpu0: <ACPI CPU> on acpi0
CPU: Genuine Intel(R) CPU            2140  @ 1.60GHz (1606.03-MHz 686-class CPU)
cpu0: <ACPI CPU> on acpi0
CPU: Genuine Intel(R) CPU            2140  @ 1.60GHz (1606.03-MHz 686-class CPU)
cpu0: <ACPI CPU> on acpi0
CPU: Genuine Intel(R) CPU            2140  @ 1.60GHz (1606.03-MHz 686-class CPU)
cpu0: <ACPI CPU> on acpi0

And a tip (Thanks to Stew):
--------------------------------
Sometimes the clock speed is not present in the hw.model entry. However grepping for clocks will often yeld the number of clocks per second.

Last Updated ( Sunday, 19 April 2009 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?