cpuinfo中各字段的意思

来源:互联网 发布:南阳理工软件 编辑:程序博客网 时间:2024/05/15 23:51
 

processor :体系中逻辑处理惩罚核的编号。对于单核处理惩罚器,则可认为是其CPU编号,对于多核处理惩罚器则可所以物理核、或者应用超线程技巧虚拟的逻辑核
vendor_id :CPU生产商
cpu family :CPU产品系列代号
model   :CPU属于其系列中的哪一代的代号
model name:CPU属于的名字及其编号、标称主频
stepping  :CPU属于建造更新版本
cpu MHz  :CPU的实际应用主频
cache size :CPU二级缓存大小
physical id :单个CPU的标号
siblings :单个CPU逻辑物理核数
core id :当前物理核在其所处CPU中的编号,这个编号不必然连气儿
cpu cores :该逻辑核所处CPU的物理核数
apicid :用来区分不合逻辑核的编号,体系中每个逻辑核的此编号必定不合,此编号不必然连气儿
fpu :是否具有浮点运算单位(Floating Point Unit)
fpu_exception :是否支撑浮点策画异常
cpuid level :履行cpuid指令前,eax存放器中的值,按照不合的值cpuid指令会返回不合的内容
wp :注解当前CPU是否在内核态支撑对用户空间的写保护(Write Protection)
flags :当前CPU支撑的功能
bogomips :在体系内核启动时粗略测算的CPU速度(Million Instructions Per Second)
clflush size :每次刷新缓存的大小单位
cache_alignment :缓存地址对齐单位
address sizes :可接见地址空间位数
power management :对能源经管的支撑

CPU信息中flags各项含义:


 

fpu: Onboard (x87) Floating Point Unit
vme: Virtual Mode Extension
de: Debugging Extensions
pse: Page Size Extensions
tsc: Time Stamp Counter: support for RDTSC and WRTSC instructions
msr: Model-Specific Registers
pae: Physical Address Extensions: ability to access 64GB of memory; only 4GB can be accessed at a time though
mce: Machine Check Architecture
cx8: CMPXCHG8 instruction
apic: Onboard Advanced Programmable Interrupt Controller
sep: Sysenter/Sysexit Instructions; SYSENTER is used for jumps to kernel memory during system calls, and SYSEXIT is used for jumps: back to the user code
mtrr: Memory Type Range Registers
pge: Page Global Enable
mca: Machine Check Architecture
cmov: CMOV instruction
pat: Page Attribute Table
pse36: 36-bit Page Size Extensions: allows to map 4 MB pages into the first 64GB RAM, used with PSE.
pn: Processor Serial-Number; only available on Pentium 3
clflush: CLFLUSH instruction
dtes: Debug Trace Store
acpi: ACPI via MSR
mmx: MultiMedia Extension
fxsr: FXSAVE and FXSTOR instructions
sse: Streaming SIMD Extensions. Single instruction multiple data. Lets you do a bunch of the same operation on different pieces of input: in a single clock tick.
sse2: Streaming SIMD Extensions-2. More of the same.
selfsnoop: CPU self snoop
acc: Automatic Clock Control
IA64: IA-64 processor Itanium.
ht: HyperThreading. Introduces an imaginary second processor that doesn’t do much but lets you run threads in the same process a bit quicker.
nx: No ute bit. Prevents arbitrary code running via buffer overflows.
pni: Prescott New Instructions aka. SSE3
vmx: Intel Vanderpool hardware virtualization technology
svm: AMD “Pacifica” hardware virtualization technology
lm: “Long Mode,” which means the chip supports the AMD64 instruction set
tm: “Thermal Monitor” Thermal throttling with IDLE instructions. Usually hardware controlled in response to CPU temperature.
tm2: “Thermal Monitor 2″ Decrease speed by reducing multipler and vcore.
est: “Enhanced SpeedStep”


 

按照以上内容,我们则可以很便利的知道当前体系关于CPU、CPU的核数、CPU是否启用超线程等信息。


 

查询体系具有几许个逻辑核:cat /proc/cpuinfo | grep "processor" | wc -l


 

查询体系CPU的物理核数:cat /proc/cpuinfo | grep "cpu cores" | uniq


 

查询体系CPU是否启用超线程:cat /proc/cpuinfo | grep -e "cpu cores" -e "siblings" | sort | uniq


 

  输出举例:


 

    cpu cores : 6
    siblings  : 6


 

  若是cpu cores数量和siblings数量一致,则没有启用超线程,不然超线程被启用。


 

查询体系CPU的个数:cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l


 

查询体系CPU是否支撑某项功能,则根以上类似,输出成果进行sort, uniq和grep就可以获得成果。

 

原创粉丝点击