linux查詢內存命令

一、Linux查看內存的詳細信息
[root@c0235 ~]# dmidecode --type memory
# dmidecode 2.10
SMBIOS 2.4 present.

Handle 0x004A, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 65024 MB
Error Information Handle: Not Provided
Number Of Devices: 12

Handle 0x004B, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x004A
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: 1
Locator: DIMM 1
Bank Locator: Bank 1
Type: DDR2
Type Detail: Synchronous
Speed: 266 MHz
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
二、查看內存的插槽數,已經使用多少插槽.每條內存多大,已使用內存多大
[root@c0235 ~]# dmidecode --type memory|grep -i size
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed

這個命令也能夠,只是複雜些
[root@c0235 ~]# dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
三、Linux 查看內存頻率
[root@c0235 ~]# dmidecode --type memory|grep -i speed
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
四、Linux 查看內存支持的最大內存容量
[root@c0235 ~]# dmidecode|grep -P 'Maximum\s+Capacity'
Maximum Capacity: 65024 MB
ide

相關文章
相關標籤/搜索