您的位置:首页 > 运维架构 > Linux

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

2012-04-01 17:38 525 查看
# 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型号)

4 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: