温馨提示×

centos cpuinfo格式是什么

小樊
45
2025-08-12 18:01:00
栏目: 智能运维

CentOS中CPU信息主要有两种查看方式及对应格式:

  • cat /proc/cpuinfo命令:输出为键值对形式,每行一个字段,字段间用冒号分隔,示例:
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 79
    model name : Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
    stepping : 1
    cpu MHz : 4000.000
    cache size : 8192 KB
    physical id : 0
    siblings : 8
    core id : 0
    cpu cores : 8
    
  • lscpu命令:输出为结构化格式,包含CPU架构、操作模式、核心数、线程数、缓存大小等信息,示例:
    Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 8
    Thread(s) per core: 2
    Core(s) per socket: 4
    Socket(s): 1
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 158
    Model name: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    CPU MHz: 2800.000
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 256K
    L3 cache: 6144K
    

0