ghosTzone
main(_){return _} && echo $? /* Keep It Simple Stupid | 本博客所有文章皆为原创 转载请注明 - ghosTM55 */

在Linux下查看CPU的信息

ghosTM55 posted @ 2008年11月22日 01:30 in Linux , 8281 阅读

  今天发现笔记本电脑特别烫,不知道为什么。然后想查看一下CPU温度,以前是从来不关心这个,问了许多朋友,竟然都不知道。而且也没有GOOGLE到有效的方法。先说说如何查看CPU的详细信息。

txi@ghosTunix:~$ cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 15
model name    : Intel(R) Core(TM)2 Duo CPU     T7250 @ 2.00GHz
stepping    : 13
cpu MHz        : 800.000
cache size    : 2048 KB
physical id    : 0
siblings    : 2
core id        : 0
cpu cores    : 2
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
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 dts acpi mmx fxsr 
sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm ida
bogomips    : 3994.00
clflush size    : 64

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 15
model name    : Intel(R) Core(TM)2 Duo CPU     T7250 @ 2.00GHz
stepping    : 13
cpu MHz        : 800.000
cache size    : 2048 KB
physical id    : 0
siblings    : 2
core id        : 1
cpu cores    : 2
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
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 dts acpi mmx
 fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr 
 lahf_lm ida
bogomips    : 3990.07
clflush size    : 64

  可以看到,/proc/cpuinfo文件记录了CPU的详细信息,但是,却没有我要的温度信息。Vincent告诉了我查看CPU温度的方法:

  • txi@ghosTunix:~$ cat /proc/acpi/thermal_zone/TZS0/temperature
    temperature: 34 C
  • txi@ghosTunix:~$ cat /proc/acpi/thermal_zone/TZS1/temperature
    temperature: 37 C

  在查询CPU信息的同时,我了解到了一个非常优秀的查看BIOS信息的工具dmidecode:

root@ghosTunix:/home/txi# dmidecode
# dmidecode 2.9
SMBIOS 2.4 present.
35 structures occupying 1281 bytes.
Table at 0x7F6DF000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: Phoenix
    Version: F.24
    Release Date: 12/21/2007
    Address: 0xE6600
    Runtime Size: 104960 bytes
    ROM Size: 1024 kB
    Characteristics:
        ISA is supported
        PCI is supported
        PC Card (PCMCIA) is supported
        PNP is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        ESCD support is available
        Boot from CD is supported
        ACPI is supported
        USB legacy is supported
        AGP is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
    BIOS Revision: 15.36
    Firmware Revision: 128.72

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: Hewlett-Packard
    Product Name: Presario V3700 Notebook PC
    Version: F.24   
    Serial Number: 2CE8014G0S
    UUID: CC1768C0-C27A-11DC-81E8-98E7FA4BA256
    Wake-up Type: Power Switch
    SKU Number: KG568PA#AB2
    Family: 103C_5335KV

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
    Manufacturer: Wistron
    Product Name: 30CD
    Version: 80.48
    Serial Number:          

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
    Manufacturer: Hewlett-Packard
    Type: Notebook
    Lock: Not Present
    Version: N/A
    Serial Number:          
    Asset Tag:                    
    Boot-up State: Safe
    Power Supply State: Safe
    Thermal State: Safe
    Security Status: None
    OEM Information: 0x00000105

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
    Socket Designation: U2E1
    Type: Central Processor
    Family: Other
    Manufacturer: Intel
    ID: FD 06 00 00 FF FB EB BF
    Version: Intel(R) Core(TM)2 Duo CPU     T7250
    Voltage: 3.3 V
    External Clock: 667 MHz
    Max Speed: 2000 MHz
    Current Speed: 2000 MHz
    Status: Populated, Enabled
    Upgrade: ZIF Socket
    L1 Cache Handle: 0x0005
    L2 Cache Handle: 0x0006
    L3 Cache Handle: Not Provided
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified
...
...
...

Handle 0x001C, DMI type 30, 6 bytes
Out-of-band Remote Access
    Manufacturer Name: Intel
    Inbound Connection: Enabled
    Outbound Connection: Disabled

Handle 0x001D, DMI type 32, 20 bytes
System Boot Information
    Status:   Handle 0x001E, DMI type 129, 10 bytes OEM-specific Type          Header and Data:         81 0A 1E 00 01 01 02 01 01 02          Strings:         Intel_ASF         Intel_ASF_001  Handle 0x001F, DMI type 136, 6 bytes OEM-specific Type          Header and Data:         88 06 1F 00 5A 5A  Handle 0x0020, DMI type 150, 14 bytes OEM-specific Type          Header and Data:         96 0E 20 00 01 01 00 00 00 00 00 00 00 00          Strings:         ABSOLUTE(PHOENIX) CLM  Handle 0x0021, DMI type 200, 7 bytes OEM-specific Type          Header and Data:         C8 07 21 00 01 02 03          Strings:         17C0                              0001  Handle 0x0022, DMI type 127, 4 bytes End Of Table 

txi@ghosTunix:~$ date
2008年 05月 23日 星期五 22:53:47 CST


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter