码迷,mamicode.com
首页 > 系统相关 > 详细

linux查询内存命令

时间:2015-09-10 16:11:57      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:

1、Linux查看内存的详细信息
[root@c0235 ~]# dmidecode --type memory
# dmidecode 2.10
SMBIOS 2.4 present.

Handle 0x004A, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 65024 MB
Error Information Handle: Not Provided
Number Of Devices: 12

Handle 0x004B, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x004A
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: 1
Locator: DIMM 1
Bank Locator: Bank 1
Type: DDR2
Type Detail: Synchronous
Speed: 266 MHz
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
2、查看内存的插槽数,已经使用多少插槽.每条内存多大,已使用内存多大
[root@c0235 ~]# dmidecode --type memory|grep -i size
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed

这个命令也可以,只是复杂些
[root@c0235 ~]# dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
3、Linux 查看内存频率
[root@c0235 ~]# dmidecode --type memory|grep -i speed
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
Speed: 266 MHz
4、Linux 查看内存支持的最大内存容量
[root@c0235 ~]# dmidecode|grep -P ‘Maximum\s+Capacity‘
Maximum Capacity: 65024 MB

linux查询内存命令

标签:

原文地址:http://my.oschina.net/u/1986074/blog/504467

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!