国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Shell實現識別物理cpu個數、核心數

2019-10-26 18:44:10
字體:
來源:轉載
供稿:網友

如何識別物理cpu個數,幾個核,是超線程還是多核心

判斷依據:

1.具有相同core id的cpu是同一個core的超線程。
2.具有相同physical id的cpu是同一顆cpu封裝的線程或者cores。

英文版:

1.Physical id and core id are not necessarily consecutive but they are unique. Any cpu with the same core id are hyperthreads in the same core.
2.Any cpu with the same physical id are threads or cores in the same physical socket.

實例:

LunarPages的CPU信息:
代碼如下:
processor        : 0
vendor_id        : GenuineIntel
cpu family        : 15
model                : 4
model name        : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 3
cpu MHz                : 3000.881
cache size        : 2048 KB
physical id        : 0
siblings        : 2
core id                : 0
cpu cores        : 1
fdiv_bug        : no
hlt_bug                : no
f00f_bug        : no
coma_bug        : no
fpu                : yes
fpu_exception        : yes
cpuid level        : 5
wp                : yes
flags                : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl cid xtpr
bogomips        : 6006.73
processor        : 1
vendor_id        : GenuineIntel
cpu family        : 15
model                : 4
model name        : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 3
cpu MHz                : 3000.881
cache size        : 2048 KB

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 大石桥市| 荆州市| 澄江县| 环江| 江源县| 安义县| 桦南县| 定结县| 洪雅县| 山阴县| 邹城市| 马尔康县| 萍乡市| 东乡县| 阳东县| 西林县| 中牟县| 奈曼旗| 晋城| 丹东市| 维西| 贵阳市| 潜江市| 文登市| 汉沽区| 专栏| 平果县| 灵川县| 阿图什市| 仙游县| 保靖县| 合肥市| 建德市| 新源县| 安徽省| 德江县| 会同县| 利川市| 黄梅县| 普格县| 新绛县|