- Linux 查看内存的插槽数,已经使用多少插槽。每条内存多大,已使用内存多大:dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
- 查看内存支持的最大内存容量
- 1.dmidecode|grep -P 'Maximum\s+Capacity'
- 2.MaximumCapacity:64GB3.Linux
- 查看内存的频率
- 1.dmidecode|grep -A16 "Memory Device"
- 2.dmidecode|grep -A16 "Memory Device"|grep 'Speed'
- [root@localhost ~]# dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
- Size: 4096 MB
- Size: 4096 MB
- [root@localhost ~]# dmidecode|grep -P 'Maximum\s+Capacity'
- Maximum Capacity: 4 GB
- [root@localhost ~]# dmidecode|grep -A16 "Memory Device"
- Memory Device
- Array Handle: 0x1000
- Error Information Handle: Not Provided
- Total Width: 64 bits
- Data Width: 64 bits
- Size: 4096 MB
- Form Factor: DIMM
- Set: None
- Locator: DIMM_1
- Bank Locator: Not Specified
- Type: DDR3
- Type Detail: Synchronous
- Speed: 800 MHz
- Manufacturer: 019800000000
- Serial Number: A109897B
- Asset Tag: 05114000
- Part Number: 99P5471-004.A01LF
- --
- Memory Device
- Array Handle: 0x1000
- Error Information Handle: Not Provided
- Total Width: 64 bits
- Data Width: 64 bits
- Size: 4096 MB
- Form Factor: DIMM
- Set: None
- Locator: DIMM_2
- Bank Locator: Not Specified
- Type: DDR3
- Type Detail: Synchronous
- Speed: 800 MHz
- Manufacturer: 019800000000
- Serial Number: 1F30B3E4
- Asset Tag: 05114300
- Part Number: 99P5471-004.A01LF
- --
- Memory Device Mapped Address
- Starting Address: 0x00000000000
- Ending Address: 0x001FFFFFFFF
- Range Size: 8 GB
- Physical Device Handle: 0x1100
- Memory Array Mapped Address Handle: 0x1300
- Partition Row Position: 1
- Interleave Position: 1
- Interleaved Data Depth: 1
- Handle 0x1401, DMI type 20, 19 bytes
- Memory Device Mapped Address
- Starting Address: 0x00000000000
- Ending Address: 0x001FFFFFFFF
- Range Size: 8 GB
- Physical Device Handle: 0x1101
- Memory Array Mapped Address Handle: 0x1300
- Partition Row Position: 1
- Interleave Position: 2
- Interleaved Data Depth: 1
- Handle 0x1410, DMI type 126, 19 bytes
- Inactive
- Handle 0x1800, DMI type 24, 5 bytes
- Hardware Security
- Power-On Password Status: Enabled
- Keyboard Password Status: Not Implemented
- [root@localhost ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
- Speed: 800 MHz
- Speed: 800 MHz
- [root@localhost ~]#