关于/proc/cpuinfo文件

 

以上输出项的含义如下:

 1 processor :系统中逻辑处理核的编号。对于单核处理器,则课认为是其CPU编号,对于多核处理器则可以是物理核、或者使用超线程技术虚拟的逻辑核
 2 vendor_id :CPU制造商     
 3 cpu family :CPU产品系列代号
 4 model   :CPU属于其系列中的哪一代的代号
 5 model name:CPU属于的名字及其编号、标称主频
 6 stepping   :CPU属于制作更新版本
 7 
 8 microcode  : 微码 (详解见: http://blog.csdn.net/zhl1224/article/details/5836035)
 9 cpu MHz   :CPU的实际使用主频
10 cache size   :CPU二级缓存大小
11 physical id   :单个CPU的标号
12 siblings       :单个CPU逻辑的核数
13 core id        :当前物理核在其所处CPU中的编号,这个编号不一定连续
14 cpu cores    :该逻辑核所处CPU的物理核数
15 apicid          :用来区分不同逻辑核的编号,系统中每个逻辑核的此编号必然不同,此编号不一定连续
16 fpu             :是否具有浮点运算单元(Floating Point Unit)
17 fpu_exception  :是否支持浮点计算异常
18 cpuid level   :执行cpuid指令前,eax寄存器中的值,根据不同的值cpuid指令会返回不同的内容
19 wp             :表明当前CPU是否在内核态支持对用户空间的写保护(Write Protection)
20 flags          :当前CPU支持的功能
21 bogomips   :在系统内核启动时粗略测算的CPU速度(Million Instructions Per Second)
22 clflush size  :每次刷新缓存的大小单位
23 cache_alignment :缓存地址对齐单位
24 address sizes     :可访问地址空间位数
25 power management :对能源管理的支持,有以下几个可选支持功能

/proc/cpuinfo 文件包含系统上每个处理器的数据段落。/proc/cpuinfo 描述中有 6 个条目适用于多内核和超线程(HT)技术检查:processor, vendor id, physical id, siblings, core id 和 cpu cores。

processor 条目包括这一逻辑处理器的唯一标识符。
physical id 条目包括每个物理封装的唯一标识符。
core id 条目保存每个内核的唯一标识符。
siblings 条目列出了位于相同物理封装中的逻辑处理器的数量。
cpu cores 条目包含位于相同物理封装中的内核数量。

通过下面信息可以知道我的电脑只有一个cpu,该cpu里面有2个物理内核,4个逻辑内核。应用了超线程技术,使系统将每个内核当做两个内核使用。

  1 processor    : 0
  2 vendor_id    : GenuineIntel
  3 cpu family    : 6
  4 model        : 69
  5 model name    : Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
  6 stepping    : 1
  7 microcode    : 0x1d
  8 cpu MHz        : 2400.000
  9 cache size    : 3072 KB
 10 physical id    : 0
 11 siblings    : 4
 12 core id        : 0
 13 cpu cores    : 2
 14 apicid        : 0
 15 initial apicid    : 0
 16 fpu        : yes
 17 fpu_exception    : yes
 18 cpuid level    : 13
 19 wp        : yes
 20 flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
 21 bugs        :
 22 bogomips    : 4789.16
 23 clflush size    : 64
 24 cache_alignment    : 64
 25 address sizes    : 39 bits physical, 48 bits virtual
 26 power management:
 27 
 28 processor    : 1
 29 vendor_id    : GenuineIntel
 30 cpu family    : 6
 31 model        : 69
 32 model name    : Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
 33 stepping    : 1
 34 microcode    : 0x1d
 35 cpu MHz        : 2363.437
 36 cache size    : 3072 KB
 37 physical id    : 0
 38 siblings    : 4
 39 core id        : 0
 40 cpu cores    : 2
 41 apicid        : 1
 42 initial apicid    : 1
 43 fpu        : yes
 44 fpu_exception    : yes
 45 cpuid level    : 13
 46 wp        : yes
 47 flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
 48 bugs        :
 49 bogomips    : 4789.16
 50 clflush size    : 64
 51 cache_alignment    : 64
 52 address sizes    : 39 bits physical, 48 bits virtual
 53 power management:
 54 
 55 processor    : 2
 56 vendor_id    : GenuineIntel
 57 cpu family    : 6
 58 model        : 69
 59 model name    : Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
 60 stepping    : 1
 61 microcode    : 0x1d
 62 cpu MHz        : 2409.750
 63 cache size    : 3072 KB
 64 physical id    : 0
 65 siblings    : 4
 66 core id        : 1
 67 cpu cores    : 2
 68 apicid        : 2
 69 initial apicid    : 2
 70 fpu        : yes
 71 fpu_exception    : yes
 72 cpuid level    : 13
 73 wp        : yes
 74 flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
 75 bugs        :
 76 bogomips    : 4789.16
 77 clflush size    : 64
 78 cache_alignment    : 64
 79 address sizes    : 39 bits physical, 48 bits virtual
 80 power management:
 81 
 82 processor    : 3
 83 vendor_id    : GenuineIntel
 84 cpu family    : 6
 85 model        : 69
 86 model name    : Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
 87 stepping    : 1
 88 microcode    : 0x1d
 89 cpu MHz        : 2434.968
 90 cache size    : 3072 KB
 91 physical id    : 0
 92 siblings    : 4
 93 core id        : 1
 94 cpu cores    : 2
 95 apicid        : 3
 96 initial apicid    : 3
 97 fpu        : yes
 98 fpu_exception    : yes
 99 cpuid level    : 13
100 wp        : yes
101 flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
102 bugs        :
103 bogomips    : 4789.16
104 clflush size    : 64
105 cache_alignment    : 64
106 address sizes    : 39 bits physical, 48 bits virtual
107 power management:
原文地址:https://www.cnblogs.com/geloutingyu/p/6372130.html