温馨提示×

ubuntu cpuinfo中的关键参数有哪些

小樊
50
2025-09-13 12:41:57
栏目: 智能运维

在Ubuntu系统中,lscpu命令可以显示CPU的详细信息。以下是一些关键参数及其解释:

CPU架构

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

CPU型号和核心数

  • CPU op-mode(s): 支持的操作模式(如32-bit, 64-bit)。
  • Byte Order: 字节序(如Little Endian)。
  • CPU(s): 逻辑CPU的数量。
  • On-line CPU(s) list: 当前在线的CPU列表。
  • Thread(s) per core: 每个核心的线程数。
  • Core(s) per socket: 每个插槽的核心数。
  • Socket(s): CPU插槽的数量。

CPU频率

  • CPU max MHz: CPU的最大频率(MHz)。
  • CPU min MHz: CPU的最小频率(MHz)。
  • BogoMIPS: 一个用于衡量CPU性能的单位,基于一个假设的时钟频率。

缓存信息

  • L1d cache: L1数据缓存大小。
  • L1i cache: L1指令缓存大小。
  • L2 cache: L2缓存大小。
  • L3 cache: L3缓存大小。

其他特性

  • Flags: CPU支持的特性列表(如SSE, AVX, AES等)。
  • Virtualization: 虚拟化支持(如VT-x, AMD-V)。
  • Hypervisor vendor: 虚拟化供应商(如KVM, Xen)。

示例输出

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
Hypervisor vendor:     KVM
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命令的输出可能会因系统配置和硬件不同而有所差异。
  • 一些特性(如VT-x, AMD-V)可能需要BIOS/UEFI设置中的相应选项启用。

通过这些关键参数,你可以全面了解你的CPU的硬件特性和性能指标。

0