红联Linux门户
Linux帮助

FreeBSD查看CPUINFO

发布时间:2008-09-29 16:26:51来源:红联作者:Syah
linux下的cat /proc/cpuinfo在bsd下没法用,替换的是
[yangsong@ /]#dmesg | grep -i CPU
CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3204.40-MHz 686-class CPU)
Hyperthreading: 2 logical CPUs
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu2 (AP): APIC ID: 6
cpu3 (AP): APIC ID: 7
cpu0: on acpi0
acpi_throttle0: on cpu0
cpu1: on acpi0
cpu2: on acpi0
cpu3: on acpi0
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
还可以:
kern.threads.virtual_cpu: 4
kern.sched.ipiwakeup.onecpu: 0
kern.smp.maxcpus: 16
kern.smp.cpus: 4
debug.cpufreq.lowest: 0
debug.cpufreq.verbose: 0
debug.kdb.stop_cpus: 1
debug.PMAP1changedcpu: 188
hw.model: Intel(R) Xeon(TM) CPU 3.20GHz
hw.ncpu: 4
hw.acpi.cpu.cx_supported: C1/0
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00%
machdep.cpu_idle_hlt: 1
machdep.hlt_cpus: 10
machdep.hlt_logical_cpus: 0
machdep.logical_cpus_mask: 10
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU1
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 3207
dev.cpu.0.freq_levels: 3207/-1 2806/-1 2405/-1 2004/-1 1603/-1 1202/-1 801/-1 400/-1
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU2
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.2.%desc: ACPI CPU
dev.cpu.2.%driver: cpu
dev.cpu.2.%location: handle=\_PR_.CPU3
dev.cpu.2.%pnpinfo: _HID=none _UID=0
dev.cpu.2.%parent: acpi0
dev.cpu.3.%desc: ACPI CPU
dev.cpu.3.%driver: cpu
dev.cpu.3.%location: handle=\_PR_.CPU4
dev.cpu.3.%pnpinfo: _HID=none _UID=0
dev.cpu.3.%parent: acpi0
dev.acpi_throttle.0.%desc: ACPI CPU Throttling
dev.acpi_throttle.0.%parent: cpu0
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
甚至还能:
sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
文章评论

共有 0 条评论