Linux 查看内存插槽数、最大容量和频率
下面是查看内存的命令供大家参考
很经典的一些命令,下面需要好好研究研究
1.Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大,已使用内存多大
- dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
- Size:2048MB
- Size:2048MB
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
2.Linux 查看内存支持的最大内存容量
- dmidecode|grep -P 'Maximum\s+Capacity'
- MaximumCapacity:64GB
3.Linux 查看内存的频率
- dmidecode|grep -A16 "Memory Device"
- dmidecode|grep -A16 "Memory Device"|grep 'Speed'
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)