1. 内存的插槽数,已经使用多少插槽.每条内存多大,已使用内存多大
dmidecode grep -P -A 5 "Memorys+Device" grep Size grep -v Range
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
2. 支持的最大内存容量
dmidecode grep -P 'Maximums+Capacity'
Maximum Capacity: 64 GB
3. 查看内存的频率
dmidecode grep -A16 "Memory Device"
dmidecode grep -A16 "Memory Device" grep 'Speed'
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
Speed: 667 MHz (1.5 ns)
--转自