我是Linux和Ubuntu的新手。我想说获得有关CPU的最大信息。(cpufreq,内核数,每个内核的线程数,指令集,缓存大小,指令集,虚拟化等)
我宁愿选择一种比Ubuntu特定方法更适合所有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: 69
Stepping: 1
CPU MHz: 989.531
BogoMIPS: 4788.74
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
运行sudo lscpu
返回相同。
您可以通过执行以下命令检查型号
cat /proc/cpuinfo | grep 'model name' | uniq
输出:
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
要计算CPU数量:
cat /proc/cpuinfo | grep processor
输出:
2
要检查内核数!
cat /proc/cpuinfo | grep 'core id'
core id : 0
core id : 1
$hardinfo | less
$nproc / prints out the number of processing units
对于Windows用户,请在此处使用CPU-Z
有关Windows和Linux的更多信息,请参见此处。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句