zoukankan      html  css  js  c++  java
  • 【转】Linux查看内存大小和插槽

    原文https://wsgzao.github.io/post/linux-memory/

    Linux 查看内存的插槽数,已经使用多少插槽,每条内存多大,已使用内存多大

    dmidecode | grep  -P  -A5  "Memorys+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  'Maximums+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
  • 相关阅读:
    B+树实现
    一些比较特殊的计数序列
    codeforce刷题(六)
    codeforces刷题(五)
    Swap and Flip
    leetcode刷题(三)
    leetcode刷题(二)
    leetcode刷题(一)
    C语言学习笔记-变量存储
    水笔记
  • 原文地址:https://www.cnblogs.com/lyongerr/p/5145959.html
Copyright © 2011-2022 走看看