linux

Linux系统中CPUInfo的lscpu命令详解

小樊
44
2025-12-07 03:22:04
栏目: 智能运维

lscpu 是一个在 Linux 系统中用于显示 CPU 架构信息的命令行工具。它可以提供关于 CPU 的详细信息,包括型号、核心数、线程数、缓存大小等。以下是 lscpu 命令的一些主要输出字段及其解释:

1. Architecture

2. CPU op-mode(s)

3. Byte Order

4. CPU(s)

5. On-line CPU(s) list

6. Thread(s) per core

7. Core(s) per socket

8. Socket(s)

9. NUMA node(s)

10. Vendor ID

11. CPU family

12. Model

13. Stepping

14. CPU MHz

15. BogoMIPS

16. Virtualization

17. L1d cache

18. L1i cache

19. L2 cache

20. L3 cache

21. NUMA node0 CPU(s)

22. Flags

示例输出

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:    2
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 158
Stepping:              9
CPU MHz:               2400.000
BogoMIPS:              4798.59
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
NUMA node0 CPU(s):     0-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 pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

使用方法

注意事项

通过 lscpu 命令,系统管理员和用户可以快速了解系统的 CPU 配置和性能特性,从而更好地进行系统优化和故障排查。

0
看了该问题的人还看了