zoukankan      html  css  js  c++  java
  • Linux——CPU相关命令

    查看CPU核数

    cat /proc/cpuinfo

    注:针对虚拟机,就是看有process有多少个,就是有多少核,比如:下面结果有4个process,就是4核。

    processor    : 0
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 15
    model name    : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
    stepping    : 1
    microcode    : 0x43
    cpu MHz        : 2399.998
    cache size    : 20480 KB
    physical id    : 0
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 0
    initial apicid    : 0
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 10
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon nopl tsc_reliable nonstop_tsc eagerfpu pni ssse3 cx16 tsc_deadline_timer hypervisor lahf_lm tsc_adjust arat
    bogomips    : 4799.99
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 43 bits physical, 48 bits virtual
    power management:
    
    processor    : 1
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 15
    model name    : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
    stepping    : 1
    microcode    : 0x43
    cpu MHz        : 2399.998
    cache size    : 20480 KB
    physical id    : 2
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 2
    initial apicid    : 2
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 10
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon nopl tsc_reliable nonstop_tsc eagerfpu pni ssse3 cx16 tsc_deadline_timer hypervisor lahf_lm tsc_adjust arat
    bogomips    : 4799.99
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 43 bits physical, 48 bits virtual
    power management:
    
    processor    : 2
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 15
    model name    : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
    stepping    : 1
    microcode    : 0x43
    cpu MHz        : 2399.998
    cache size    : 20480 KB
    physical id    : 4
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 4
    initial apicid    : 4
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 10
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon nopl tsc_reliable nonstop_tsc eagerfpu pni ssse3 cx16 tsc_deadline_timer hypervisor lahf_lm tsc_adjust arat
    bogomips    : 4799.99
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 43 bits physical, 48 bits virtual
    power management:
    
    processor    : 3
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 15
    model name    : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
    stepping    : 1
    microcode    : 0x43
    cpu MHz        : 2399.998
    cache size    : 20480 KB
    physical id    : 6
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 6
    initial apicid    : 6
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 10
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon nopl tsc_reliable nonstop_tsc eagerfpu pni ssse3 cx16 tsc_deadline_timer hypervisor lahf_lm tsc_adjust arat
    bogomips    : 4799.99
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 43 bits physical, 48 bits virtual
    power management:
     
     
  • 相关阅读:
    向架构师进军--->如何编写软件架构文档
    让创意更有黏性!
    eaby技术架构变迁
    应用系统之间数据传输的几种方式
    基于 CAS 无锁实现的 Disruptor.NET 居然慢于 BlockingCollection,是真的吗?
    调整数据库表结构,搞定 WordPress 数据库查询缓慢问题
    dynamic-css 动态 CSS 库,使得你可以借助 MVVM 模式动态生成和更新 css,从 js 事件和 css 选择器的苦海中脱离出来
    ASP.NET Framework 重写后的 .NET 异常报错界面(异常堆栈和溯源一目了然)
    Orchard Core 中运行带程序上下文的单元测试
    Angular 2 前端 http 传输 model 对象及其外键的问题
  • 原文地址:https://www.cnblogs.com/caoweixiong/p/15192683.html
Copyright © 2011-2022 走看看