FreeBSD: получить информацию о процессоре

Автор: | 04/12/2013
 

freebsd_logoПри помощи утилиты sysctl:

# sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
hw.machine: i386
hw.model: Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
hw.ncpu: 1
hw.machine_arch: i386

Или из файла dmesg:

# grep -i cpu /var/run/dmesg.boot
SRAT: No CPU found for memory domain 0
CPU: Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz (2400.08-MHz 686-class CPU)
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0

И ещё один вариант – с помощью утилиты dmidecode:

# which dmidecode
/usr/local/sbin/dmidecode
# make search name=dmidecode
Port:   dmidecode-2.12
Path:   /usr/ports/sysutils/dmidecode
Info:   Tool for dumping DMI (SMBIOS) contents in human-readable format
Maint:  [email protected]
B-deps:
R-deps:
WWW:    http://www.nongnu.org/dmidecode/
# dmidecode | grep -A50 -E "CPU" | less
Socket Designation: CPU socket #0
Type: Central Processor
Family: Pentium Pro
Manufacturer: GenuineIntel
ID: F1 06 00 00 FF FB EB 0F
Signature: Type 0, Family 6, Model 15, Stepping 1
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
Version: Pentium(R) Pro
Voltage: 3.3 V
External Clock: Unknown
Max Speed: 30000 MHz
Current Speed: 2400 MHz
Status: Populated, Enabled
Upgrade: ZIF Socket
L1 Cache Handle: 0x001C
L2 Cache Handle: 0x001D
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified