wmic memphysical get maxcapacity存疑

编程入门 行业动态 更新时间:2024-10-28 11:25:35

<a href=https://www.elefans.com/category/jswz/34/1769502.html style=wmic memphysical get maxcapacity存疑"/>

wmic memphysical get maxcapacity存疑

问题来源:

我查了很多资料,但是还有一些问题。
首先是我的电脑是i7-6700HQ,cpu最大支持64g。

然后是北桥芯片组,支持64g。

然后是插槽,有两个ddr4插槽,最大支持频率2133MHZ。
系统是64位系统,windows10。
但是在cmd里,输入wmic memphysical get maxcapacity。
输出33554432,然后/1024/1024=32g,我怀疑这是单槽支持的最大内存。

同样出现问题的情况:

查阅了很多资料和论坛有几位网友也认为是单槽最大内存。



还有一个网友输出小于总内存的,链接具体找不到了。

类似的问题:
为什么我maxcapacity出现了两行?
=1#post-410924785

获取内存最大容量为8G,用软件测试为最大支持容量为16g

当然还有不少输出0的网友,是因为识别不出来。

在官网给的文档中,以前版本的windows系统有些并不适用。

windows源文件:

根据他从源文件=MSDN里找到的。
MaxCapacity

Data type: uint32

Access type: Read-only

Qualifiers: DEPRECATED, MappingStrings (“SMBIOS|Type 16|Maximum Capacity”)

Use the MaxCapacityEx property instead.

This value comes from the Maximum Capacity member of the Physical Memory Array structure in the SMBIOS information.

Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008 and Windows Vista: Maximum memory size (in bytes) installable for this particular memory array. If the size is unknown, the property is given a value of 0 (zero).

MaxCapacityEx

Data type: uint64

Access type: Read-only

Qualifiers: MappingStrings (“SMBIOS|Type 16|Extended Maximum Capacity”), Units (“kilobytes”)

Maximum memory size (in bytes) installable for this particular memory array. If the size is unknown, the property is given a value of 0 (zero).

This value comes from the Extended Maximum Capacity member of the Physical Memory Array structure in the SMBIOS information.

源文件说的不是很清楚,尤其是Physical Memory Array structure 到底指的是单个还是总的。

实验给出的一个特殊情况:

最后我找了为自己组机器的朋友做了个实验

他的结果是268435456,256g。

书籍资料:

另外我在Windows PowerShell for Administration: The Personal Trainer书中找到了

这里指的却是总内存。

总结:

可能这个方法并不是一个合适的方法检测最大物理内存。

要看具体支持多大内存还是要根据主板和系统。(绝大部分情况不考虑cpu,除非特别老的cpu配上很新的主板。intel在官网就可以查到cpu支持的最大内存,amd官网则没有。)

当然aida64软件测得的结果我认为也比命令行可靠。

更多推荐

wmic memphysical get maxcapacity存疑

本文发布于:2024-02-25 02:43:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1697518.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:wmic   memphysical   maxcapacity

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!