大旗谷资源网 Design By www.zqyou.com

在linux系统中,查看内存条个数,及每根内存的大小,可以使用dmidecode命令。

如下:

#dmidecode | grep -A16 "Memory Device$"

输出结果:

Memory Device #存储设备
Array Handle: 0x1000 #阵列处理
Error Information Handle: Not Provided #错误信息的处理:不提供 
Total Width: 72 bits #总宽度: 72位
Data Width: 64 bits #数据宽度: 64位 
Size: 1024 MB #大小
Form Factor: 
Set: 1
Locator: DIMM1 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous #输入详细信息:同步 
Speed: 667 MHz (1.5 ns) #速度: 667兆赫( 1.5纳秒)
Manufacturer: 80AD7FB380AD #制造商
Serial Number: 42600700 #序号
Asset Tag: 010910
Part Number: HYMP112F72CP8D3-Y5
--
//by www.jb51.net
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: 
Set: 1
Locator: DIMM2 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: 667 MHz (1.5 ns)
Manufacturer: 80AD7FB380AD
Serial Number: 42600213
Asset Tag: 010910
Part Number: HYMP112F72CP8D3-Y5
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: 
Set: 2
Locator: DIMM3 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: 667 MHz (1.5 ns)
Manufacturer: 855185518551
Serial Number: 0503BE1A
Asset Tag: 4C0838
Part Number: 72T128401EFA3SC2 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: 
Set: 2
Locator: DIMM4 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: 667 MHz (1.5 ns)
Manufacturer: 855185518551
Serial Number: 0503BF1F
Asset Tag: 4C0838
Part Number: 72T128401EFA3SC2 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 3
Locator: DIMM5 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number: 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 3
Locator: DIMM6 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number: 
--
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 4
Locator: DIMM7 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number: 
--//by www.jb51.net
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: 
Set: 4
Locator: DIMM8 
Bank Locator: Not Specified
Type: 
Type Detail: Synchronous
Speed: Unknown
Manufacturer: 
Serial Number: 
Asset Tag: 
Part Number:

然后,用free命令查看当前内存的使用情况:

# free -m 
total used free shared buffers cached
Mem: 4054 2963 1090 0 144 1272
-/+ buffers/cache: 1547 2506
Swap: 4094 0 4094

以上就是小编为大家带来的linux下查看内存条数及每根内存大小的实现方法(推荐)全部内容了,希望大家多多支持~

标签:
linux查看内存条数

大旗谷资源网 Design By www.zqyou.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
大旗谷资源网 Design By www.zqyou.com

评论“linux下查看内存条数及每根内存大小的实现方法(推荐)”

暂无linux下查看内存条数及每根内存大小的实现方法(推荐)的评论...

P70系列延期,华为新旗舰将在下月发布

3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。

而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?

根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。