1、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

2、查看内存的插槽数,已经使用多少插槽.每条内存多大,已使用内存多大

[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

3、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

4、Linux 查看内存支持的最大内存容量

[root@c0235 ~]# dmidecode|grep -P 'Maximum\s+Capacity'

Maximum Capacity: 65024 MB

Logo

更多推荐