温馨提示×

ubuntu cpuinfo包含哪些参数

小樊
53
2025-09-09 12:26:41
栏目: 智能运维

Ubuntu中的lscpu命令可以显示CPU的详细信息,包括以下参数:

CPU架构

  • Architecture: CPU的架构(如x86_64)。

CPU型号和供应商

  • CPU op-mode(s): 支持的操作模式(如32-bit, 64-bit)。
  • Byte Order: 字节序(如Little Endian)。
  • CPU(s): 总的物理核心数。
  • On-line CPU(s) list: 在线CPU列表。
  • Thread(s) per core: 每个核心的线程数。
  • Core(s) per socket: 每个插槽的核心数。
  • Socket(s): 插槽数量。
  • NUMA node(s): 非统一内存访问(NUMA)节点数。
  • Vendor ID: CPU供应商ID。
  • CPU family: CPU家族号。
  • Model: CPU型号。
  • Stepping: CPU步进号。
  • CPU MHz: 当前CPU频率。
  • BogoMIPS: 每秒十亿次指令数(BogoMIPS)。
  • Virtualization: 虚拟化技术支持情况。
  • L1d cache: L1数据缓存大小。
  • L1i cache: L1指令缓存大小。
  • L2 cache: L2缓存大小。
  • L3 cache: L3缓存大小。

性能相关参数

  • Flags: CPU支持的指令集标志。

其他信息

  • Clk: CPU时钟频率。
  • BogoMIPS: 计算机的性能指标,基于CPU的时钟频率和指令执行速度。
  • Hypervisor vendor: 虚拟机监控程序供应商(如果适用)。

NUMA相关信息

  • NUMA node0 CPU(s): NUMA节点0上的CPU列表。
  • NUMA node1 CPU(s): NUMA节点1上的CPU列表。
  • …(根据NUMA节点数量)

示例输出

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:              4800.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 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

注意事项

  • lscpu命令的输出可能会因系统配置和硬件差异而有所不同。
  • 如果需要更详细的硬件信息,可以考虑使用dmidecode命令。

通过这些参数,你可以全面了解Ubuntu系统中CPU的详细配置和性能特性。

0