温馨提示×

ubuntu cpuinfo能查到哪些信息

小樊
50
2025-08-14 09:41:43
栏目: 智能运维

在Ubuntu系统中,lscpu命令可以显示CPU的详细信息。以下是使用lscpu命令可以查看到的一些关键信息:

基本信息

  1. CPU架构

    • Architecture:CPU的架构类型(如x86_64)。
  2. CPU型号

    • CPU op-mode(s):支持的指令集。
    • Byte Order:字节序(大端或小端)。
    • CPU(s):逻辑CPU的数量。
  3. 物理核心数

    • On-line CPU(s) list:在线的CPU核心列表。
    • Thread(s) per core:每个核心的线程数。
    • Core(s) per socket:每个插槽的核心数。
    • Socket(s):物理插槽的数量。
  4. 缓存信息

    • L1d cache:一级数据缓存大小。
    • L1i cache:一级指令缓存大小。
    • L2 cache:二级缓存大小。
    • L3 cache:三级缓存大小。
  5. 内存控制器

    • NUMA node(s):NUMA节点的数量。
    • Vendor ID:CPU制造商ID。
    • CPU family:CPU家族号。
    • Model:CPU型号号。
    • Stepping:CPU步进号。
  6. 性能相关参数

    • CPU MHz:当前CPU的频率。
    • BogoMIPS:一个理论上的CPU性能指标。
    • Virtualization:是否支持虚拟化技术(如Intel VT-x或AMD-V)。
  7. 电源管理

    • Flags:CPU支持的标志位,包括各种特性和扩展。

示例输出

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:               2300.000
BogoMIPS:              4600.00
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
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 movbe 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

使用方法

只需在终端中输入以下命令即可查看详细的CPU信息:

lscpu

通过这些信息,你可以全面了解你的CPU配置和性能特点,从而更好地进行系统优化和故障排查。

0