linux下查看主板内存槽与内存信息

原文地址:http://blog.sina.com.cn/s/blog_69cc2f0b0100wk5g.html


1、查看内存槽数、那个槽位插了内存,大小是多少

sudo dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range

或者

dmidecode -t 17

2、查看最大支持内存数

sudo dmidecode|grep -P 'Maximum\s+Capacity'

或者

sudo dmidecode -t 16


3、查看槽位上内存的速率,没插就是unknown。

sudo dmidecode|grep -A16 "Memory Device"|grep 'Speed'


附录:

dmidecode支持的数字参数:
 

Type  Information
   ----------------------------------------
          BIOS
          System
          BaseBoard
          Chassis
          Processor
          MemoryController
          MemoryModule
          Cache
          PortConnector
          SystemSlots
       10   On BoardDevices
       11   OEMStrings
       12   SystemConfiguration Options
       13   BIOSLanguage
       14   GroupAssociations
       15   System EventLog
       16   PhysicalMemory Array
       17   MemoryDevice
       18   32-bit MemoryError
       19   Memory ArrayMapped Address
       20   Memory DeviceMapped Address
       21   Built-inPointing Device
       22   PortableBattery
       23   SystemReset
       24   HardwareSecurity
       25   System PowerControls
       26   VoltageProbe
       27   CoolingDevice
       28   TemperatureProbe
       29   ElectricalCurrent Probe
       30   Out-of-bandRemote Access
       31   Boot IntegrityServices
       32   SystemBoot
       33   64-bit MemoryError
       34   ManagementDevice
       35   ManagementDevice Component
       36   ManagementDevice Threshold Data
       37   MemoryChannel
       38   IPMIDevice
       39   PowerSupply



  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值