Linux下如何查看CPU信息相关命令

# uname -a(查看当前操作系统内核信息)

Linux DB_SERVER 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux

 

# cat /etc/issue | grep release (查看当前操作系统发行版信息)
CentOS release 5.5 (Final)

 

# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c (看到有4个逻辑CPU, 也知道了CPU型号)
 Intel(R) Xeon(R) CPU           E5504  @ 2.00GHz

 

# cat /proc/cpuinfo | grep physical | uniq -c
      4 physical id     : 0

 

# getconf LONG_BIT(当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)
32

 

# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l  (结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
4

 

# dmidecode | grep -A48 'Processor Information$'(完整看cpu物理信息)

Processor Information
        Socket Designation: Proc 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: 76 06 01 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 23, Stepping 6
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Not Specified
        Voltage: 1.4 V
        External Clock: 1333 MHz
        Max Speed: 4800 MHz
        Current Speed: 2000 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0710
        L2 Cache Handle: 0x0720
        L3 Cache Handle: 0x0730
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
--
Processor Information
        Socket Designation: Proc 2
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: 00 00 00 00 00 00 00 00
        Signature: Type 0, Family 0, Model 0, Stepping 0
        Flags: None
        Version: Not Specified
        Voltage: 1.4 V
        External Clock: 200 MHz
        Max Speed: 4800 MHz
        Current Speed: Unknown
        Status: Unpopulated
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0716
        L2 Cache Handle: 0x0726
        L3 Cache Handle: 0x0736
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified

Handle 0x0710, DMI type 7, 19 bytes.
Cache Information
        Socket Designation: Processor 1 Internal L1 Cache
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 128 KB
        Maximum Size: 128 KB
        Supported SRAM Types:
                Burst
        Installed SRAM Type: Burst
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Data
        Associativity: 8-way Set-associative

Handle 0x0716, DMI type 7, 19 bytes.
Cache Information
        Socket Designation: Processor 2 Internal L1 Cache
        Configuration: Disabled, Not Socketed, Level 1
        Operational Mode: Unknown
        Location: Internal
        Installed Size: 0 KB
        Maximum Size: 128 KB
        Supported SRAM Types:
                Burst
        Installed SRAM Type: Burst

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值