获取 cpu 名称,例如。 QJZG、SR2HG等使用linux终端
Getting cpu name eg. QJZG, SR2HG etc. using linux terminal
如何使用 linux 终端获取 CPU 的名称,但不是样式名称 i3-6100
,而是样式名称 SR2HG
等。 ?我的意思是在 cpu 案例中键入的名称,其中包含大写字母和数字。
编辑
我尝试了 lshw
命令但没有成功
首先是一些术语:
QJZG、SR2HG 等称为“样本规格编号”或“S-Spec 编号”或简称为“SSpecs”。
i3-6100等为“型号”
A0、B1等为“步进”码
lshw
不会给你 S-Spec 号码的原因是它们无法从 CPU 芯片上以电子方式读取。实际上可读的是与型号和步进相对应的数字代码。此外,芯片报告描述芯片的“产品”字符串......如您的 lshw
屏幕截图所示。
还有另一个名为 lscpu
的 Linux 实用程序,它也将显示型号和步进的数字代码以及其他信息。例如:
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 142
Model name: Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz
Stepping: 11
CPU MHz: 800.034
CPU max MHz: 3900.0000
CPU min MHz: 400.0000
BogoMIPS: 4599.93
Virtualisation: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
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 art
arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc
cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx
est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2
x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c
rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb
invpcid_single ssbd ibrs ibpb stibp tpr_shadow vnmi
flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1
avx2 smep bmi2 erms invpcid mpx rdseed adx smap
clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm
ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
md_clear flush_l1d arch_capabilities
但是,lshw
或 lscpu
或 (AFAIK) 任何其他标准 Linux 实用程序都无法将模型和步进数字代码映射到它们的常规文本形式。
而且一般不可能将一个模型映射到一个S-Spec号上。
为什么?
因为映射不是唯一的。任何模型+步进通常至少有两个 S-Spec 数字。一个用于 pre-production 个样品,另一个用于生产芯片。
甚至英特尔支持网站也表示,确定芯片 S-Spec 的唯一可靠方法是查看芯片本身的印刷内容。
如何使用 linux 终端获取 CPU 的名称,但不是样式名称 i3-6100
,而是样式名称 SR2HG
等。 ?我的意思是在 cpu 案例中键入的名称,其中包含大写字母和数字。
编辑
我尝试了 lshw
命令但没有成功
首先是一些术语:
QJZG、SR2HG 等称为“样本规格编号”或“S-Spec 编号”或简称为“SSpecs”。
i3-6100等为“型号”
A0、B1等为“步进”码
lshw
不会给你 S-Spec 号码的原因是它们无法从 CPU 芯片上以电子方式读取。实际上可读的是与型号和步进相对应的数字代码。此外,芯片报告描述芯片的“产品”字符串......如您的 lshw
屏幕截图所示。
还有另一个名为 lscpu
的 Linux 实用程序,它也将显示型号和步进的数字代码以及其他信息。例如:
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 142
Model name: Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz
Stepping: 11
CPU MHz: 800.034
CPU max MHz: 3900.0000
CPU min MHz: 400.0000
BogoMIPS: 4599.93
Virtualisation: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
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 art
arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc
cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx
est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2
x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c
rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb
invpcid_single ssbd ibrs ibpb stibp tpr_shadow vnmi
flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1
avx2 smep bmi2 erms invpcid mpx rdseed adx smap
clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm
ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
md_clear flush_l1d arch_capabilities
但是,lshw
或 lscpu
或 (AFAIK) 任何其他标准 Linux 实用程序都无法将模型和步进数字代码映射到它们的常规文本形式。
而且一般不可能将一个模型映射到一个S-Spec号上。
为什么?
因为映射不是唯一的。任何模型+步进通常至少有两个 S-Spec 数字。一个用于 pre-production 个样品,另一个用于生产芯片。
甚至英特尔支持网站也表示,确定芯片 S-Spec 的唯一可靠方法是查看芯片本身的印刷内容。