动态分配的内存大小可变吗_如果增加大小,内存会变慢吗?

动态分配的内存大小可变吗

动态分配的内存大小可变吗_如果增加大小,内存会变慢吗?

Sometimes it is fun to speculate how differently your system would operate if changes were made to the hardware components. Today’s SuperUser Q&A post discusses increases in the size of memory to help satisfy a reader’s curiosity.

有时,推测如果对硬件组件进行了更改,您的系统将以何种方式运行会很有趣。 今天的SuperUser Q&A帖子讨论了内存大小的增加,以帮助满足读者的好奇心。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Photo courtesy of Association WDA (Flickr).

图片由WDA协会(Flickr)提供

问题 (The Question)

SuperUser reader spartacus wants to know if increasing the size of memory would cause it to become slower:

SuperUser阅读器spartacus想知道是否增加内存大小会导致其变慢:

If we increased the size of SDRAM using the same technology, would the response time become slower? If it did become slower, would it be due to the complexity of digital logic?

如果我们使用相同的技术增加SDRAM的大小,响应时间会变慢吗? 如果确实变慢了,那是由于数字逻辑的复杂性吗?

Would an increase in size cause memory to become slower?

大小增加会导致内存变慢吗?

答案 (The Answer)

SuperUser contributors Daniel R Hicks and Shikhar Bhardwaj have the answer for us. First up, Daniel R Hicks:

超级用户贡献者Daniel R Hicks和Shikhar Bhardwaj为我们找到了答案。 首先,Daniel R Hicks:

Yes and no. As duDE states, memory will never run faster than the bus/clock speed driving it, but the maximum speed of memory is definitely dependent on size.

是的,没有。 如duDE所述 ,内存的运行速度永远不会比驱动它的总线/时钟速度快,但是内存的最大速度肯定取决于大小。

As a memory assembly gets larger, the number of levels of address decoder increase (with the log of size), and the load on the drivers increases linearly (producing roughly a logarithmic increase in delay).

随着存储器组件的变大,地址解码器的级别数增加(随着大小的对数增加),驱动器上的负载线性增加(延迟大致成对数增长)。

So, while it is rarely worthwhile to limit the size of RAM in a off-the-shelf system in an attempt to increase speed (there are exceptions where the box adjusts clock speed based on the size of RAM), if you are a system designer, the maximum RAM size is one of the performance trade-offs you must consider.

因此,如果您是一个系统,虽然不大可能限制现成系统中的RAM大小以尝试提高速度(有一些例外情况是盒子会根据RAM的大小来调整时钟速度)。设计人员,最大RAM大小是您必须考虑的性能折衷之一。

Followed by the answer from Shikhar Bhardwaj:

随后是Shikhar Bhardwaj的回答:

No, it does not. As SDRAM is synchronized with the system, memory speed depends on the speed of the system. What may affect the speed of memory access is the configuration it is used in.

不,不是的。 由于SDRAM与系统同步,因此存储速度取决于系统的速度。 可能会影响内存访问速度的是所使用的配置。

If your build already has a dual-channel (or triple-channel) configuration, and the increased memory does not use identical modules, then you may slow down to single-channel operation. However, this decrease is hardly noticeable, as Wikipedia says:

如果您的构建已经具有双通道(或三通道)配置,并且增加的内存没有使用相同的模块,那么您可能会减慢单通道操作的速度。 但是,这种减少几乎没有引起注意,如Wikipedia所述:

  • Tom’s Hardware found little significant difference between single-channel and dual-channel configurations in synthetic and gaming benchmarks (using a “modern (2007)” system setup). In its tests, dual-channel gave at best a 5 percent speed increase in memory-intensive tasks.

    Tom's Hardware发现,在合成和游戏基准测试中,单通道和双通道配置之间没有太大的区别(使用“现代(2007年)”系统设置)。 在其测试中,双通道最多可将内存密集型任务的速度提高5%。

In this case, the speed may decrease, but you will experience an overall boost in performance due to the greater amount of physical memory available to your operating system. This, of course, depends on the operating system you are using and how efficient it is at utilizing the available resources.

在这种情况下,速度可能会降低,但是由于操作系统可使用的物理内存量较大,因此您会整体上提高性能。 当然,这取决于您使用的操作系统以及它在利用可用资源方面的效率。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/207195/does-memory-become-slower-if-increased-in-size/

动态分配的内存大小可变吗

相关文章: