linux查看CPU線程信息

linux查看CPU線程信息

定義

-多處理器指安裝在同一塊主板上的多顆處理器
-多核指單顆處理器包含多個完整的計算引擎(內核)
-多線程指單核在硬件上實現多個線程併發執行的技術

處理器信息

$cat /proc/cpuinfo
processor   : 0
......
processor   : 23
vendor_id   : GenuineIntel
cpu family  : 6
model       : 44
model name  : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
stepping    : 2
microcode   : 5
cpu MHz     : 1600.000
cache size  : 12288 KB
physical id : 1
siblings    : 12
core id     : 9
cpu cores   : 6
apicid      : 51
initial apicid  : 51
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : 
bogomips        : 4798.16
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

彙總表

processor core id physical id
0 0 0
1 0 1
2 8 0
3 8 1
4 2 0
5 2 1
6 10 0
7 10 1
8 1 0
9 1 1
10 9 0
11 9 1
12 0 0
13 0 1
14 8 0
15 8 1
16 2 0
17 2 1
18 10 0
19 10 1

總結

-兩顆處理器(兩個physical id)
-每顆處理器含有六核(相同physical id有六個core id)
-每核有兩個線程(相同的physical id和core id有兩個邏輯處理器)
-機器共有24個CPU線程

發佈了23 篇原創文章 · 獲贊 0 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章