美文网首页
Linux 下查看CPU 信息:

Linux 下查看CPU 信息:

作者: 程序员阿奇 | 来源:发表于2020-07-08 09:48 被阅读0次

    通过以下命令查看cpu 概览信息:

    lscpu
    

    具体信息如下:

    Architecture:          x86_64     架构--这里的64指的位处理器
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                4    逻辑cpu 个数
    On-line CPU(s) list:   0-3
    Thread(s) per core:    2  每个核心的线程数
    Core(s) per socket:    2  每个插槽上有几个核心
    Socket(s):             1
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 85
    Model name:            Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
    Stepping:              4
    CPU MHz:               2500.000
    BogoMIPS:              5000.00
    Hypervisor vendor:     KVM 
    Virtualization type:   full
    L1d cache:             32K   一级缓存大小
    L1i cache:             32K 
    L2 cache:              1024K   二级缓存大小  
    L3 cache:              33792K    三级缓存大小  
    NUMA node0 CPU(s):     0-3
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 spec_ctrl intel_stibp
    

    通过以下命令查看具体信息:

     cat /proc/cpuinfo
    

    具体信息如下:

    processor       : 3.       超线程技术的虚拟逻辑核第4个
    vendor_id       : GenuineIntel     CPU制造商
    cpu family      : 6.   CPU产品系列代号
    model           : 85   CPU属于其系列中的哪一代号
    model name      : Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz.      CPU属于的名字、编号、主频
    stepping        : 4.  CPU属于制作更新版本
    microcode       : 0x1
    cpu MHz         : 2500.000.  CPU的实际使用主频
    cache size      : 33792 KB.  CPU三级缓存大小
    physical id     : 0.   物理CPU的个数0..1 代表2个CPU
    siblings        : 4.    代表每个CPU的逻辑核数.  每个CPU有4个逻辑物理核  
    core id         : 1.    当前物理核在其所处的CPU中的编号,该编号不一定连续
    cpu cores       : 2.   该逻辑核所处CPU的物理核数
    apicid          : 3.   用来区分不同逻辑和的编号,每个逻辑和的此编号不同,不一定连续
    initial apicid  : 3
    fpu             : yes.   是否具有浮点运算单元   
    fpu_exception   : yes.   是否支持浮点计算异常
    cpuid level     : 13.   执行cpuid指令前,eax寄存器中的值,不同cpuid指令会返回不同内容
    wp              : yes.   表明当前CPU是否在内核态支持对用户空间的写保护(Write Protection)
    flags           : 当前CPU支持的功能
    bogomips        : 5000.00.   测算CPU速度
    clflush size    : 64.   每次刷新缓存的大小单位
    cache_alignment : 64.   缓存地址对齐单位
    address sizes   : 46 bits physical, 48 bits virtual.   可访问地址空间为数
    power management:
    

    相关文章

      网友评论

          本文标题:Linux 下查看CPU 信息:

          本文链接:https://www.haomeiwen.com/subject/gnjqcktx.html