gpt4 book ai didi

windows - 我如何询问 Windows RAM 是在单 channel 、双 channel 还是四 channel 中运行?

转载 作者:可可西里 更新时间:2023-11-01 12:28:02 25 4
gpt4 key购买 nike

如何检测当前的 RAM 配置?我需要询问 Windows RAM 当前是在单 channel 、双 channel 还是四 channel 中运行。

我搜索了很多,并没有在这个网站或其他网站上找到任何类似的问题,这让我很惊讶。

我正在使用 C++,但这个问题确实适用于所有编程语言,因为它是关于 windows 函数或 powershell/cmd 命令会给我我需要的信息。

最佳答案

InterleavePosition 是您正在寻找的。一个以 2,2,2 出现,因为它在双 channel 中运行 3 个摇杆。您需要了解的是如何识别运行单 channel 的机器,以便您可以使用此命令的输出:

wmic memorychip get InterleavePosition

编辑:其实不太确定3根双 channel 。一些研究表明,如今大多数主板都会将单 channel 的奇数制成单 channel 。

因此,从 MSDN 中,这就是我们在挖掘有关交错内存的系统信息方面必须使用的内容。

Position of the physical memory in an interleave. For example, in a 2:1 interleave, a value of "1" indicates that the memory is in the "even" position.

This property is inherited from CIM_PhysicalMemory.

0 - Noninterleaved

1 - First position

2 - Second position

加上 InterleaveDataDepth 表示:

InterleaveDataDepth

Unsigned 16-bit integer maximum number of consecutive rows of data that are accessed in a single interleaved transfer from the memory device. If the value is 0 (zero), the memory is not interleaved.

请注意,interleave 是“相互共享”的花哨词,类似于现在的多 channel ,但不是一回事。来自 wiki on interleaved memory:

It is different from multi-channel memory architectures, primarily as interleaved memory is not adding more channels between the main memory and the memory controller. However, channel interleaving is also possible...[]

使用它,我将分享使用 cmd.exe 在双 channel 中拥有 4 个 RAM 棒的情况:

example of dual channel memory output from wmic

编辑:一些人已经确认这些值在某些机器上工作得很好,但经常返回令人费解/无意义的值。

关于windows - 我如何询问 Windows RAM 是在单 channel 、双 channel 还是四 channel 中运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49633289/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com