温馨提示×

ubuntu cpuinfo包含哪些数据

小樊
55
2025-09-01 12:03:37
栏目: 智能运维

Ubuntu中的lscpu命令用于显示CPU架构信息,其输出结果包含了多个方面的数据。以下是一些主要的数据项:

CPU架构信息

  1. Architecture

    • CPU的架构类型(如x86_64)。
  2. CPU op-mode(s)

    • 支持的操作模式(如32-bit, 64-bit)。
  3. Byte Order

    • 字节序(大端或小端)。
  4. CPU(s)

    • 总共的物理CPU核心数。
  5. On-line CPU(s) list

    • 当前在线的CPU核心列表。
  6. Thread(s) per core

    • 每个核心的线程数。
  7. Core(s) per socket

    • 每个插槽的核心数。
  8. Socket(s)

    • CPU插槽数量。
  9. NUMA node(s)

    • 非统一内存访问(NUMA)节点的数量。

CPU特性

  1. Vendor ID

    • CPU制造商的标识符。
  2. CPU family

    • CPU家族编号。
  3. Model

    • CPU型号。
  4. Stepping

    • CPU步进(修订版)。
  5. CPU MHz

    • 当前CPU的时钟频率。
  6. BogoMIPS

    • 一种衡量CPU性能的单位。
  7. Virtualization

    • 是否支持虚拟化技术(如Intel VT-x或AMD-V)。
  8. L1d cache

    • L1数据缓存大小。
  9. L1i cache

    • L1指令缓存大小。
  10. L2 cache

    • L2缓存大小。
  11. L3 cache

    • L3缓存大小。
  12. NUMA node0 CPU(s)

    • NUMA节点0上的CPU核心列表。

其他信息

  1. Flags

    • CPU支持的所有指令集和特性标志。
  2. Bugs

    • 已知的CPU硬件缺陷。
  3. Clflush size

    • CPU缓存行刷新的大小。
  4. Address sizes

    • 支持的最大物理地址和虚拟地址空间大小。

示例输出

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:              4599.27
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 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer 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
Bugs:                  cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
Clflush size:          64
Address sizes:         39 bits physical, 48 bits virtual
Power Management:

注意事项

  • 输出结果可能会因CPU型号和系统配置的不同而有所差异。
  • 可以通过lscpu -v获取更详细的版本信息。
  • 使用lscpu | grep "Flags"可以查看CPU支持的所有特性标志。

总之,lscpu命令提供了关于CPU架构、特性和性能的全面信息,对于系统管理员和开发者来说非常有用。

0