freebsd查看CPU信息

今天在freebsd上安装MPlayer,看了一下手册:

6.2.1 FreeBSD
如果你的CPU有SSE,使用"options CPU_ENABLE_SSE"选项重新编译内核来使用它(需要FreeBSD-STABLE,或者使用内核补丁)。

 

SSE是指令集的简称,它包括70条指令,其中包含单指令多数据浮点计算、以及额外的SIMD整数和高速缓存控制指令。其优势包括:更高分辨率的图像浏览和处理、高质量音频、MPEG2视频、同时MPEG2加解密;语音识别占用更少CPU资源;更高精度和更快响应速度。

更多...

如何检测CPU是否支持SSE呢,如下:

#grep -i features /var/run/dmesg.boot

=====其他检测CPU信息的一些指令=======

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

转载于:https://my.oschina.net/huxuanhui/blog/14611

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值