web-dev-qa-db-ja.com

LinuxでCPUステッピングを取得する

トピックからわかるように、cpuのステッピングコードを適切に取得できる必要があります。ウィキペディアが言うように、A0A2B0など。したがって、Linux(ubuntu 16.04)のコマンドは次のようになります。

# dmidecode -t 4 | grep Stepping | awk '{ printf $8": "$9"\n" }'
# Stepping: 2

# lscpu | grep Stepping
# Stepping: 2

# cpuid | grep stepping
# stepping id = 0x2 (2)

# cat /proc/cpuinfo | grep stepping
# stepping: 2

全体の出力:cat/proc/cpuinfo(1コア):

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
stepping        : 2
microcode       : 0x13
cpu MHz         : 2400.208
cache size      : 12288 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
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 pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt lahf_lm epb kaiser tpr_shadow vnmi flexpriority ept vpid dtherm ida arat
bugs            :
bogomips        : 4800.41
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
...

cpuid(パーツ):

...
family          = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
...
(simple synth)  = Intel Core i7-900 (Gulftown B1) / Core i7-980X (Gulftown B1) / Xeon Processor 3600 (Westmere-EP B1) / Xeon Processor 5600 (Westmere-EP B1), 32nm
...

dmidecode -t 4(パート):

...
Signature: Type 0, Family 6, Model 44, Stepping 2
...

CPU-Zプログラムのインターネットからのスクリーンショット:

Revision E0 ?

CPU-Gプログラムのインターネットからのスクリーンショット:

Stepping 4 ?

0x2または2とは何ですか?ウィキペディアで言及されているように、なぜA0またはB1ではないのですか?数字を踏む前にこの手紙を手に入れるには?

よろしく、V7

5
V.7

CPUからの情報のみを使用して、ステッピング番号をステッピング名にマッピングする方法はありません。 Intelからの仕様の更新を確認する必要があります。これらには、CPUのさまざまなリビジョンで修正されたエラッタの説明が含まれており、さまざまなステッピングを(適切な場合)識別するための識別情報も含まれています。

たとえば、E8500の場合、 仕様の更新 には、C0とE0の2つのリビジョンがリストされます。 C0はプロセッサシグネチャ10676h、E0はプロセッサシグネチャ1067Ahに対応します(16ページの表1を参照)。これらのシグネチャの最後の4ビットは、/proc/cpuinfolscpuなど、およびCPU-Zの「ステッピング」フィールドで指定されるステッピング値です。ご覧のとおり、数値とステッピング名の間に明確な相関関係はありません(E8500ステッピングC0の場合は6、E8500ステッピングE0の場合はA)。 CPU-Zなどのツールにはこのすべての識別情報が含まれており、それを使用してGUIでステッピング名を提供します。

4
Stephen Kitt