Search

A technology, a device or an article

Why DRAM works to retain data already written

RAM contents can remain unchanged while DRAM keeps restoring their state. Refresh, bank availability, and self-refresh explain the continuing work of retention.

Painted field of tiny cups holding blue droplets against green
ITNWS AI-generated conceptual illustration. Droplets evoke charge retention and restoration; actual DRAM cells do not store liquid.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

The array lies in RAM and does not change. The application does not add elements, does not sort them, and does not even temporarily read anything. At the program level, it is a stationary object. At the DRAM level, storing its contents remains a job: the electrical state of the cells must be periodically restored. Pausing the application does not give memory permission to stop this process. Therefore, RAM performs work that cannot be explained by the number of user writes, and the word “dynamic” describes the very material dependence of data on ongoing maintenance.

A simplified DRAM cell stores a distinct electrical state using a small capacitance and an access transistor. Leakage gradually reduces the sensing margin. The real design is more complex than the textbook drawing, and the exact mapping between charge and logical value is not necessary to understand the problem: the stored state is not guaranteed to remain reliably readable indefinitely. This distinguishes DRAM from the idea of a perfect box where the finished bit was once placed. Information retention requires conditions that the device and controller must maintain after the original write has completed.

When a row is activated, a slight change on the bit lines is detected by the sense amplifiers. The process is associated with the restoration of the state of the cells; reading cannot be imagined as a completely non-contact observation of a stationary charge. The row must then undergo the required maintenance before other bank actions. The sequence of physical obligations itself is important: to obtain a value, to restore it, to prepare the structure for further work. Intervals arise from it that will not disappear because the user requested only one byte from a large row.

Refresh takes advantage of the need for restoration to save rows that the application may not have accessed at all. The controller issues commands within the established mode, and DRAM services internal rows according to its organization. This is not a software copy of a file, nor is it a retransmission of the entire contents of RAM across the external bus. The host is not required to read every row into the processor in order to leave the data in place. The work occurs closer to the array, but takes up real resources and imposes restrictions on parallel accesses to the affected banks.

This explanation is based on Micron’s account of DDR5 adoption and Micron’s DDR5 product description, reviewed October 27, 2026. The account of the standard’s adoption is used as a historical engineering description. Reading it again today does not mean refresh has just appeared, or that the parameters of early implementations apply automatically to every die currently sold. The density, organization, and mode of a particular device retain significance.

The timing terminology of refresh is easy to misread. tREFI denotes the interval associated with the required average command frequency in the corresponding mode, and tRFC denotes the refresh cycle time during which access restrictions are in effect for the affected area. These are different characteristics. An increase in one value is not identical to an increase in another, and a small tRFC does not relieve the system of the obligation to service all the necessary rows in a timely manner. When both abbreviations are called a common "memory delay", the very subject of the engineering solution disappears.

Average periodicity also does not provide unlimited freedom to defer commands. The standard and the device have rules for acceptable deferment and subsequent execution of refresh. The controller can look for suitable times in the schedule, but cannot simply forget to service while the application is active. An idle request queue helps hide some of the cost; a constantly busy bank makes the conflict more noticeable. Therefore, the same data retention contract interacts differently with different workloads, although the user files and total installed RAM capacity may remain the same.

Where work continues

The all-bank refresh command requires the readiness of all affected banks and temporarily limits access to them. This does not mean stopping the entire computer: other independent resources can continue to work. But if the data the application needs is located in the serviced area, the request will have to take into account its inaccessibility. The external transfer-rate graph alone cannot show this internal reason for the wait. The high rated speed of an interface describes the transfer capabilities when the desired operation is enabled, rather than a promise of uninterrupted availability of every row.

DDR5 adds same-bank refresh, REFsb. The word same is especially important here: the command selects the appropriate bank in each bank group, rather than an arbitrary single bank in the entire device. The remaining banks have the opportunity to service the work, taking into account the necessary time restrictions. Micron describes this mechanism as a way to reduce the blocking area compared to an all-bank refresh. Calling it “refresh without stopping access” would be too strong a statement: the target banks are still busy, and neighboring operations must comply with the command rules.

Therefore, the usefulness of REFsb depends on where the pending data is located. If the necessary requests are distributed among available banks, the controller still has work to do while servicing the target ones. If all requests are directed to a busy region, the abstract opportunity for concurrency cannot service them elsewhere. There is no constant DDR5 acceleration percentage here. The protocol allows for more flexible scheduling, and actual usage is determined by address placement, queuing, and device limitations. The mere presence of a new command does not measure the result of the application.

Same-bank refresh also has requirements for the sequence of servicing banks. You cannot endlessly update a convenient set, leaving another one without restoration, because it contains rarely read data. It is the rarely read rows that particularly clearly show the purpose of refresh: correctness should not depend on the popularity of the address with the application. The details of traversal and counters are implementation and documented mode specific, but the general invariant remains physical. All desired states must receive restoration within the specified retention contract.

Woven grid with an orange stripe and pale neighboring areas
ITNWS AI-generated conceptual illustration. The stripe evokes refresh locality, not a bank map or a precise bank count. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

Temperature is included in this agreement as a retention condition, and not as a decorative monitoring indicator. Changes in operating conditions require accounting for leakage and the permitted refresh regime. AMD DDRMC5 controller documentation, Refresh section, for example, describes dynamic interval adjustment according to DRAM mode register 4. This is documentation of a specific controller, and not a promise of identical behavior on every desktop system. It is useful because it shows the relationship between a device requirement and the operation of the command scheduler.

From this connection, one cannot derive universal advice to increase tREFI for the sake of a beautiful test result. Lengthening the gaps changes the storage margin, not just the response speed. The absence of an error on a short run does not validate all rows, all temperatures and all subsequent modes. Conversely, the periodicity established by the manufacturer is not meaningless spare margin that can be removed without changing the contract. It belongs to the conditions of correct storage, although the user sees it indirectly through availability and waiting time.

This also explains why refresh cannot be reduced to correcting an error that has already occurred. Preventive state restoration and ECC have different functions. An error-correcting code is capable of detecting or correcting certain damages within its capabilities, but does not replace mandatory regular maintenance of the array. On-die ECC in DDR5 does not make capacitors non-volatile and does not allow you to turn off refresh. Falsely combining these mechanisms turns the presence of protection against some errors into the promise of unlimited retention of all data.

A related Rowhammer topic concerns state violations caused by certain accesses to adjacent rows and ways to protect against such influences. Here the subject is different: normal retention of an ordinary array, even if there is no special attack sequence. Regular refresh exists regardless of the disturbance errors discussion. The confusion of topics makes it difficult to see the simple reason why memory is busy: information requires support simply because it is stored in DRAM. Complex additional defense mechanisms do not replace this original physical responsibility.

Self-refresh makes this continuing work particularly clear. The system may direct the device to perform internal restoration if the specified power and mode entry conditions are met. The application is no longer making normal accesses, and the data continues to need support. Self-refresh is not the same as turning off power and does not turn RAM into an SSD. There are also exit and preparation requirements when returning to normal memory accesses. The contents survive the pause because maintenance continued, not because the dynamic cell suddenly became persistent.

Therefore, the expression “memory does nothing in sleep” is incorrect even without counting individual microwatts. It is precisely the activity that is preserved, without which the meaning of sleep with the preservation of RAM would be lost. Specific power figures depend on the product and mode; we did not measure them. To explain, it is enough to separate the lack of user requests from the lack of internal work. This division also helps to understand the difference between resuming from a state with saved RAM and restoring data from non-volatile media.

Die density adds another reason to read device documentation rather than just the generic word DDR5. More stored state means different internal maintenance organization; refresh parameters may vary. A module with a larger capacity can also achieve it with different numbers of dies and ranks. Comparing two kits only by frequency therefore does not fully describe availability under load. This is no reason to call larger RAM configurations slow: extra capacity can eliminate a much more expensive shortage. It’s just that the reasons for the result lie in several specific properties, and not in one advertising number.

It is also impossible to directly convert a share of internal refresh time into the same percentage of program slowdown. The processor works with the cache part of the time, the controller can serve other banks, requests overlap, and sometimes it is the desired bank that delays the dependent load. The average throughput and latency of an individual request reflect these circumstances differently. Transparent calculation of constraints is useful for the model, but without a trace and selected load it does not become the result of a real memory test.

When measuring the effect, it would be necessary to preserve the essential conditions: device, refresh mode, placement of requests and definition of the measured result. Otherwise, the simultaneously changed interface frequency and service policy will not allow us to determine the cause. This is a methodological consequence of the mechanism, and not instructions for overclocking memory or an account of an editorial experiment. In this material, we did not change the parameters of the modules and did not obtain our own measurements. The documents explain why the effect is possible; the magnitude for a particular application must be established by a separate correct experiment.

For the application developer, the practical point is to reject the assumption that unchanged data requires no work. Data can remain unchanged while its retention still consumes resources. RAM provides fast access not by a magical lack of service, but by coordinated maintenance alongside useful memory requests. The controller hides some of the work, DDR5 narrows the area of some pauses, self-refresh maintains content while the system is idle. But the original array remains in place only because work continues inside.

Sources & documentation

  1. Micron DDR5 introduction ↗
  2. AMD DDRMC5 Refresh, PG456 v1.0,2026-08-07 ↗
  3. Micron DDR5 technology enablement, historical ecosystem account ↗