查看cpu信息命令
用法:
lscpu [选项]
Display information about the CPU architecture.
选项:
-a, --all 同时打印在线和离线 CPU (-e 选项默认值)
-b, --online 只打印在线 CPU (-p 选项默认值)
-c, --offline 只打印离线 CPU
-e, --extended[=<列表>] 打印扩展的可读格式
-p, --parse[=<列表>] 打印可解析格式
-s, --sysroot <目录> 以指定目录作为系统根目录
-x, --hex 打印十六进制掩码而非 CPU 列表
-y, --physical print physical instead of logical IDs
-h, --help 显示此帮助并退出
-V, --version 输出版本信息并退出
可用的列:
CPU 逻辑 CPU 数量
CORE 逻辑核心数量
SOCKET 逻辑(CPU)座数量
NODE 逻辑 NUMA 节点数量
BOOK 逻辑 book 数
DRAWER logical drawer number
CACHE shows how caches are shared between CPUs
POLARIZATION CPU dispatching mode on virtual hardware
ADDRESS physical address of a CPU
CONFIGURED shows if the hypervisor has allocated the CPU
ONLINE shows if Linux currently makes use of the CPU
MAXMHZ shows the maximum MHz of the CPU
MINMHZ shows the minimum MHz of the CPU
更多信息请参阅 lscpu(1)。
示例:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 4
座: 2
NUMA 节点: 2
厂商 ID: GenuineIntel
CPU 系列: 6
型号: 45
型号名称: Intel(R) Xeon(R) CPU E5-2403 0 @ 1.80GHz
步进: 7
CPU MHz: 1786.486
CPU max MHz: 1800.0000
CPU min MHz: 1200.0000
BogoMIPS: 3591.34
虚拟化: VT-x
L1d 缓存: 32K
L1i 缓存: 32K
L2 缓存: 256K
L3 缓存: 10240K
NUMA 节点0 CPU: 0-3
NUMA 节点1 CPU: 4-7
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 eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts md_clear spec_ctrl intel_stibp flush_l1d