smbios可以用来查看一些机器的硬件信息,比如CPU
# smbios -t 4
ID SIZE TYPE
6 100 SMB_TYPE_PROCESSOR (processor)
Manufacturer: GenuineIntel
Version: Intel(R) Core(TM)2 Duo CPU T5250 @ 1.50GHz
Location Tag: None
Family: 1 (other)
CPUID: 0xbfebfbff000006fd
Type: 3 (central processor)
Socket Upgrade: 6 (none)
Socket Status: Populated
Processor Status: 1 (enabled)
Supported Voltages: 1.4V
External Clock Speed: Unknown
Maximum Speed: 1500MHz
Current Speed: 1500MHz
L1 Cache: 10
L2 Cache: 12
L3 Cache: None
内存插槽
# smbios -t 16
ID SIZE TYPE
43 15 SMB_TYPE_MEMARRAY (physical memory array)
Location: 3 (system board or motherboard)
Use: 3 (system memory)
ECC: 3 (none)
Number of Slots/Sockets: 2
Memory Error Data: Not Supported
Max Capacity: 4294967296 bytes
可以看出,这个笔记本有两个内存插槽,最大支持4G内存
内存
# smbios -t 17
ID SIZE TYPE
44 42 SMB_TYPE_MEMDEVICE (memory device)
Location Tag: DIMM 1
Physical Memory Array: 43
Memory Error Data: 65281
Total Width: 64 bits
Data Width: 64 bits
Size: 1073741824 bytes
Form Factor: 13 (SODIMM)
Set: None
Memory Type: 19 (DDR2)
Flags: 0x80
SMB_MDF_SYNC (synchronous)
Speed: 1ns
Device Locator: DIMM 1
Bank Locator: Bank 0/1
ID SIZE TYPE
45 42 SMB_TYPE_MEMDEVICE (memory device)
Location Tag: DIMM 2
Physical Memory Array: 43
Memory Error Data: 65281
Total Width: 64 bits
Data Width: 64 bits
Size: 1073741824 bytes
Form Factor: 13 (SODIMM)
Set: None
Memory Type: 19 (DDR2)
Flags: 0x80
SMB_MDF_SYNC (synchronous)
Speed: 1ns
Device Locator: DIMM 2
Bank Locator: Bank 2/3
笔记本上一共插了两条内存,每条1G,类型是DDR2
Linux对应的命令是dmidecode
阅读(1511) | 评论(0) | 转发(0) |