> CentOS > CentOS入门 >

CentOS查看内存

1.查看内存的插槽数及使用情况
[root@10.10.90.20 ~]# dmidecode|grep -P -A5 "Memory Device" |grep Size
        Size: 4096 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: 4096 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
   
2.查看内存支持的最大内存容量
[root@10.10.90.20 ~]# dmidecode|grep -P 'Maximum Capacity'
Maximum Capacity: 128 GB
   
3.查看内存的频率
 [root@10.10.90.20 ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
        Speed: 1333 MHz
        Speed: Unknown
        Speed: Unknown
        Speed: Unknown
        Speed: 1333 MHz
        Speed: Unknown
        Speed: Unknown
        Speed: Unknown

(责任编辑:IT)