歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux查看內存大小和插槽

Linux查看內存大小和插槽

日期:2017/2/27 15:48:31   编辑:Linux教程
Linux 查看內存的插槽數,已經使用多少插槽,每條內存多大,已使用內存多大
dmidecode | grep  -P  -A5  "Memory\s+Device" | grep Size | grep -v Range 

        Size: 16384 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
        Size: 16384 MB
        Size: No Module Installed
Linux 查看內存支持的最大內存容量
dmidecode | grep -P  'Maximum\s+Capacity'

        Maximum Capacity: 1536 GB
Linux 查看內存的頻率
dmidecode | grep -A16 "Memory Device" | grep "Speed"

        Speed: 1600 MHz (0.6 ns)
        Speed: Unknown
        Speed: Unknown
        Speed: 1600 MHz (0.6 ns)
        Speed: Unknown
        Speed: Unknown
        Speed: Unknown
        Speed: Unknown
        Speed: 1600 MHz (0.6 ns)
        Speed: Unknown
        Speed: Unknown
        Speed: 1600 MHz (0.6 ns)
        Speed: 1600 MHz (0.6 ns)
        Speed: Unknown
        Speed: Unknown
        Speed: 1600 MHz (0.6 ns)
        Speed: Unknown
        Speed: Unknown
        Speed: Unknown
        Speed: Unknown
        Speed: 1600 MHz (0.6 ns)
        Speed: Unknown
        Speed: Unknown
        Speed: 1600 MHz (0.6 ns)
查看詳細的主板信息
dmidecode | grep -A16 "System Information$"
查看詳細的內存信息
dmidecode | grep -A16 "Memory Device$"
dmidecode -t memory
原文:http://wsgzao.github.io/post/linux-memory/
Copyright © Linux教程網 All Rights Reserved