Refresh by the Right Bins: Optimal Retention-Time Bin Edges for DRAM Refresh by Dynamic Programming, a Geometric-Edge Bound, the Storage Trade-off, and the Hidden Cost of Removing Implicit Margin
Retention-aware DRAM refresh groups rows into bins by measured retention time and refreshes each bin at its own interval, so that most rows are refreshed far less often than the standard 64 ms. The number of bins and their edges are normally chosen by hand, in powers of two, and the cost of tracking which row is in which bin is treated separately. This paper treats the choice as an optimisation: given the sorted retention times, a dynamic program finds the bin edges that minimise total refresh rate for k bins, optionally with a penalty per tracked row. Three results follow. (1) A bound: with geometric edges whose ratio is r, refresh rate is at most r times the per-row lower bound, so the overhead of finite binning falls as the k-th root of the retention range. (2) On a simulated population of one million rows, free edges and k = 8 bins come within 27 percent of the per-row lower bound against 50 percent for geometric edges; bins limited to 64, 128 and 256 ms need 2.9 times the lower bound, and the dynamic program with a longer allowed interval lowers refresh rate to 0.18 of the all-64-ms baseline against 0.27, at four times the tracked rows. At an equal number of tracked rows, free edges lower refresh rate by only 2.4 percent, so the useful freedom is the interval range, not the edge positions. (3) Optimising refresh removes the implicit margin that hand-chosen bins carry: the median row sits 2.5 times above its assigned interval instead of 7.6 times, and a 3-fold retention drop would hit 84 percent of rows instead of 8 percent. Restoring equal protection with a larger guard factor still leaves a refresh rate 7 to 33 percent lower than the hand-chosen bins, at 2 to 4 times the tracked rows. All numbers come from CPU numpy runs on an illustrative retention distribution, not from measured devices. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not hardware measurements; no GPU was used. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.
Authors
- I-Wei Tseng
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24767139
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint