2024年11月27日 Linux lscpu命令 极客笔记
Linux lscpu命令:显示有关CPU架构的信息。
使用lscpu命令可以显示CPU的详细信息,比如CPU的制造商、架构、CPU数量、型号、主频、缓存及支持的虚拟化技术等信息。
lscpu [选项]
命令中各选项的含义如表所示。
显示CPU的详细信息
[root@rhel ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit,64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s)list: 0
Thread(s)per core: 1
Core(s)per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 37
Stepping: 2
CPU MHz: 2128.029
BogoMIPS: 4256.05
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0
以扩展可读的格式显示CPU信息
[root@rhel ~]# lscpu -e
CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE
0 0 0 0 0:0:0:0 yes
以可解析的格式显示CPU信息
[root@rhel ~]# lscpu -p
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU, Core, Socket, Node, , L1d, L1i, L2, L3
0,0,0,0, ,0,0,0,0
本文链接:http://so.lmcjl.com/news/18600/