DRAM LAB
What it is. A laboratory for your memory. In about three minutes DRAM LAB measures how fast the processor gets its data: from the caches and from RAM, at rest and under heavy traffic, and how often the memory pauses to refresh itself. On AM5 with DDR5 it also measures the memory timings themselves, on each memory channel separately. Every run is saved, and any two runs can be compared side by side.
Why use it. A timing in BIOS is just a number; DRAM LAB shows what it really does. Change CL, RCD, REFI or any other setting, and you see which delays got shorter, how much faster programs and games get their data and whether both channels followed. It is the only test that works with the real geometry of DDR5 memory and shows each channel, UMC0 and UMC1, on its own. That makes it more than a helper for memory overclocking: it also checks the platform itself, down to mistakes in AMD's firmware, AGESA.
How memory answers a read
Memory is not one big box. The way it is built decides how long every single read takes.
That is why one read is not like another. It depends on the state of the bank:
- Row Hit. The needed row is already open. The data comes straight from the buffer after the delay CL.
- Row Closed. No row is open. The bank first opens the needed one, which takes RCD, and then reads it: RCD + CL.
- Row Conflict. Another row of the same bank is open. The bank closes it (RP), opens the needed one (RCD) and reads it (CL).
The names are the ones in the settings table of DRAM LAB and in BIOS: CL, RCDRD, RP. One clock of DDR5-6200 lasts 0.32 ns, so CL 32 takes 10.3 ns.
Memory also has to pause now and then to refresh: its cells slowly lose their charge and must be rewritten. While a refresh lasts, the refreshed banks do not answer, and a read that arrives at that moment waits. How long a refresh lasts is set by RFC (RFC2 or RFCsb in other refresh modes), how often it comes by REFI. More in Example 2.
Why DRAM LAB is different
Ordinary memory benchmarks read random or sequential addresses. They do not know which channel, bank and row an address lands in, so every number they show is a mix: of hits, closed rows and conflicts, of both channels at once, with refresh on top.
DRAM LAB reads the address map of the memory controller and knows where every address it uses physically sits: channel, half of the module, bank group, bank and row. So it builds exactly the access it wants: a read from an open row, a read from a closed one, a conflict inside one bank, a write followed by a read. Each case gets its own measurement, for UMC0 and UMC1 separately.
What this gives you:
- Every timing in its own place. Row Closed moves with CL and RCDRD, Conflict − Closed with RP, Row Cycle with RC. You see what a change touched and what it left alone. See It answers to every timing.
- Every channel on its own. A problem on one channel does not hide in the average of two.
- The platform, not only the settings. Every run stores the BIOS and AGESA version, so you can see what a BIOS update changed in the memory controller. See Check the platform.
It answers to every timing
DRAM LAB does not only see CL. Every timing that decides how a row is opened, closed, written or refreshed has a row of its own, and a change of that timing shows up there. This is how it looked on the author's test bench, a Ryzen 9 9950X3D with DDR5-6000, with one setting changed per step. One clock there lasts 0.33 ns.
| You change in BIOS | It shows in | Measured |
|---|---|---|
| CL 36 → 32 | Row Closed, Row Conflict; Row Hit only in part | −1.35 ns, that is 4 clocks |
| RCDRD 39 → 45 | Row Closed, Row Conflict, Write Recovery | +1.91, +1.93 and +2.05 ns, that is 6 clocks; Row Hit and Write → Read did not move |
| RP 39 → 45 | Row Conflict, Write Recovery | +1.94 and +2.01 ns; everything else stayed |
| RC 146 | Row Cycle | 48.7 ns, exactly 146 clocks |
| RRDL 15 | Bank Step | 5.38 ns, that is 16 clocks with GDM ON |
| RRDS and FAW | Bank Step, when you hover it: tRRD_S and tFAW | within 0.08 ns of BIOS |
| WR 2.0 ns longer | Write Recovery | +2.28 ns |
| WTRL 3.0 ns longer | Write → Read | +2.90 ns |
| WTRS 4.0 ns longer | Write → Read, when you hover it: tWTR_S | +4.39 ns |
| RFC2 160 → 187 ns | Refresh Time, Slow Reads | 162 → 190 ns |
| REFI 12076 → 65535 | Refresh Period, Slow Reads, Lat P50 | 1.95 → 10.57 µs, see Example 2 |
Each change moved its own rows, and the rows it does not drive stayed within noise. That is what makes DRAM LAB a tool for tuning step by step: you see which timing did something and which one did nothing on your memory.
The turnaround timings between reads and writes and between ranks or modules, such as RDWR, WRRD, RDRDSD or WRWRDD, have no row of their own. If they matter for a load, it shows in the result row and in the Loaded views.
Run the test
- Set up the memory the way you want to measure it. Close background programs, especially monitoring, RGB and fan software: they add slow reads and make Lat P99 jump.
- Open TESTS and click RUN on the DRAM LAB tile.
- Read the warning and click OK. It reminds you that the keyboard and mouse will be locked and how long the test takes, and it names the monitoring programs that are running, if there are any.
- Leave the PC alone: about 3 minutes on DDR5, about 11 on DDR4. The progress bar shows the stage: LATENCY CURVE, IDLE LATENCY, REFRESH, BANDWIDTH, DRAM TIMINGS, GAME LOAD and LOADED LATENCY.
- When the test ends, the DRAM LAB page opens. The new run is series B; A stays the run you chose before.
HISTORY on the same tile opens the page with the saved runs. On DDR4 the stages BANK THRASH and R/W TURNAROUND take the place of DRAM TIMINGS, which is why the test is longer there.
What do you want to check?
| Question | Where to look | What it tells you |
|---|---|---|
| Did a change of CL, RCD, RP or another timing help? | DRAM Timings, UMC0 and UMC1 | Which kinds of access answered, and whether both channels followed. |
| What did REFI or RFC give? | Slow Reads, Refresh Time and Refresh Period, then Lat P50 | How long and how often reads waited for refresh. |
| Does the gain hold under heavy traffic? | Loaded Read and Loaded Read/Write | Latency at the same traffic, and the peak bandwidth. |
| Why does the curve jump? | Latency Curve | Where the cache ends and memory begins. |
| Did a BIOS update change anything? | SYSTEM rows and DRAM Timings | The difference between BIOS versions on top of the usual drift, channel by channel. |
DRAM LAB tells you how fast the memory is. Whether it is stable, ANVIL tells you, and how much safety margin its signals have, DATA EYE. A green result is not proof of stability.
The page at a glance
- 1Series A. Choose a saved run, give it your own name (Enter saves it, an empty field returns to the date) or delete it with the bin.
- 2Series B. Any other run. The page shows how B differs from A.
- 3Settings. BIOS, AGESA and the Windows start (Boot), then the memory clocks, modes, timings and voltages of A and B, captured during the run. A changed row is amber; the table opens scrolled to the first change.
- 4Headline. What changed from A to B and, below it, whether the result can be trusted. See Colours and the verdict.
- 5Counters. How many metrics got better ↑, worse ↓ or stayed within noise ≈.
- 6View. Latency Curve, Slow Reads, Loaded Read, Loaded Read/Write or DRAM Timings. See Five views.
- 7Legend. Which run is A, in blue, and which is B, in red.
- 8Channels. Every timing of A and B on UMC0 and on UMC1 separately.
- 9Change. B minus A for both channels together, in ns: green is better, red worse, grey within noise.
- 10Differences. Closed − Hit and Conflict − Closed: one measurement minus another, part by part. They show RCDRD and RP more directly than the absolute values.
- 11Result row. Seven numbers that programs feel: latency, bandwidth, a game-like load and refresh. The row stays the same in every view. See The result row.
Every time in the table is in nanoseconds, and lower is better. Hover over a row to see what it follows and the values of A and B; Bank Step and Write → Read also show their short neighbours tRRD_S, tFAW and tWTR_S.
Five views
The list at the top right switches the big panel between five views. The result row under it does not change.
Latency Curve
- 1L3 cache. Even the smallest step, 4 MB, is larger than the L2 cache of a core, so the curve starts in L3: about 10–11 ns.
- 2Edge of L3. Past the size of the L3 cache of the measured CCD, 32 MB here, more and more reads go to memory and the curve climbs steeply.
- 3DRAM. Larger sets come from memory: 60–90 ns. This is where memory settings show up.
- 4Δ. B minus A at the largest size, coloured only beyond noise.
Across is the sample size: how much data the test walks through. Up is how long one read takes. A is blue, B red with its values. Hover over a point to see its size, its latency and whether it is in cache or in DRAM.
Near the edge of L3 the curve is touchy: a point there can jump between runs, as at 32 MB in this example. Judge memory by the DRAM part.
Slow Reads
- 1+30–100 ns. Reads that waited a little, mostly behind other memory traffic. This part wanders between identical runs, so do not read much into it.
- 2+100–300 ns. Reads that ran into a refresh. A shorter refresh time (RFC, RFC2 or RFCsb) or a longer REFI makes this part smaller.
- 3Line under the bar. The typical read time, how long one refresh lasts and how often it comes, what refresh costs an average read, and how many reads in a million waited 1 µs or more: those are interruptions by Windows.
The bar is the share of single reads that waited longer than usual, split by how much longer. Shorter is better. A and B share one scale. Hover over a part to see its exact share.
Loaded Read and Loaded Read/Write
Here one core measures memory latency while the other cores add background traffic, step by step from idle to full load. Across is the traffic they actually reached, in GB/s; up is the typical latency of the measuring core. At the left end the memory is idle. At the right end it is full, every request waits in line, and the curve shoots up.
Compare A and B at the same traffic, not point by point: a faster setup also moves more data. The line under the title does it for you: B − A at idle, at half of the shared peak, and the difference of the peaks. In Example 1 it is −0.8 ns at idle, −2.0 ns at 37 GB/s and a peak 1.6 GB/s higher with reads only, and −2.5 ns, −4.5 ns and +1.9 GB/s with writes.
Read/Write is harder for memory: the bus has to turn around between reads and writes, so latency rises sooner and the peak is lower. It is closer to a game, which writes as well as reads. Hover over a point to see the traffic and the P50 and P99 latency.
DRAM Timings
The table from The page at a glance. What every row measures and which settings move it, with the names from the settings table. A row shows the effect of these timings; its nanoseconds are not an exact conversion of the BIOS clocks.
| Row | What it measures | Follows |
|---|---|---|
| Row Hit | A read from a row that is already open. | CL. One channel can react less, see PLATFORM CHECK. |
| Row Closed | A read from a closed row: the bank opens it first. | CL + RCDRD |
| Row Conflict | A read while another row of the same bank is open. | CL + RCDRD + RP |
| Closed − Hit | Row Closed minus Row Hit. | RCDRD |
| Conflict − Closed | Row Conflict minus Row Closed. | RP |
| Row Cycle | The shortest time between opening two rows of one bank. | RC, or RAS + RP when that is longer |
| Bank Step | How long the second of two reads waits in another bank of the same bank group. | RRDL or RDRDSCL, whichever is longer |
| Write → Read | How much longer a read takes right after a write to the same bank group. | WTRL + CWL |
| Write Recovery | How much longer a read of another row takes right after a write to the same bank. | WR + CWL, plus RP and RCDRD |
The result row
| Metric | What it shows | Better |
|---|---|---|
| Lat P50 (ns) | The typical time of a read from memory. One sample is the average of 32 reads in a row, so waits for refresh are part of it. | Lower |
| Lat P99 (ns) | The slow edge of the same samples: only one sample in a hundred is slower. Background programs move it as much as timings do. Single slow reads are counted in Slow Reads. | Lower |
| Read MT (GB/s) | Small random blocks read by all threads of one CCD. Latency limits it, not the bus; the peak bandwidth is in the Loaded views. | Higher |
| Write MT (GB/s) | The same with ordinary writes: every line is first read from memory, so read timings count here too. | Higher |
| Game P99 (ns) | The slow edge of memory latency while other threads load memory the way a game does. It is not frame time or 1% low FPS. | Lower |
| Refresh Time (ns) | How long one refresh blocks reads. It follows RFC, RFC2 or RFCsb, whichever the refresh mode uses. | Lower |
| Refresh Period (µs) | How often a refresh comes. It follows REFI; in the refresh mode Mixed it is about half of REFI. | Higher |
Read MT and Write MT are measured once per run, so they show a change but never a colour and do not count in ↑ ↓ ≈. Every other metric is measured in several parts per run, and the verdict works with those parts.
Colours and the verdict
A change gets a colour only when the repeated parts of A and B clearly lie apart, and the difference is larger than their spread and than the smallest change that metric can show reliably. Grey or ≈ means that this pair did not confirm a change: a small effect may still be there, but this pair is no proof of it.
| On the page | Meaning |
|---|---|
| Headline | What changed from A to B: one setting, such as REFI 12076 → 65535, or several, such as 5 settings changed: CL, RCDRD +3. |
| Green stripe | At least one metric got better and none got worse. |
| Red stripe | At least one metric got worse and none got better. |
| Amber stripe | Some metrics got better, others worse. |
| Grey stripe | No change was confirmed, or A and B have the same settings. |
- Counters. They are not a percentage of speed: one change often shows in several related metrics at once.
- Different boots. A new Windows start usually means a new memory training, unless Memory Context Restore in BIOS reuses the old one. On the systems tested so far this shifted all latencies by up to about 1 ns. When A and B come from different boots, the Boot row is amber, the hint under the headline says so in amber, and Lat P50, Row Hit, Row Closed and Closed − Hit need a change of about 1 ns to get a colour. A colour then means a change beyond that shift; it does not prove what caused it.
- No known setting change. A and B were recorded with the same settings. Such a pair shows how much your results drift by themselves.
- Different or missing measurement context. A and B come from a different processor, measuring core, memory type or ranks, or from a different version of the test. Both are shown, but not compared: no colours and no counters.
Example 1: CL 36 → 32, RCD and RP 39 → 38
The screenshot in The page at a glance compares two runs of a Ryzen 9 9950X3D with four 16 GB DDR5-6200 modules, UCLK 3100, FCLK 2067 and GDM ON. A runs CL 36 with RCDRD, RCDWR and RP at 39; B runs CL 32 with 38 for the others. CWL followed CL from 34 to 30, so HYDRA counts 5 changed settings. The result: 7 metrics better, none worse, 5 within noise.
| Row | A → B, UMC0 · UMC1 (ns) | Change | Clocks saved |
|---|---|---|---|
| Row Closed | 71.90 · 72.14 → 70.03 · 70.29 | −1.87 ns | CL 4 + RCDRD 2 = 6, that is 1.94 ns |
| Row Conflict | 84.88 · 85.10 → 81.82 · 82.60 | −2.80 ns | CL 4 + RCDRD 2 + RP 2 = 8, that is 2.58 ns |
| Write → Read | 23.57 · 24.07 → 22.44 · 22.71 | −1.23 ns | CWL 4, that is 1.29 ns |
| Write Recovery | 70.87 · 70.54 → 68.19 · 67.93 | −2.70 ns | CWL 4 + RP 2 + RCDRD 2 = 8, that is 2.58 ns |
| Row Hit | 60.86 · 64.25 → 60.11 · 63.80 | −0.60 ns ≈ | CL 4, that is 1.29 ns |
| Row Cycle | 37.42 · 37.55 → 37.44 · 37.54 | +0.03 ns ≈ | RC unchanged |
| Bank Step | 5.22 · 5.22 → 5.23 · 5.24 | +0.01 ns ≈ | RRDL unchanged |
- Two clocks, not one. With GDM ON an odd RCD or RP works on this PC like the next even value: 39 acts as 40, so 39 → 38 saved two clocks. The measured changes match the even counts within 0.1–0.2 ns; with one clock they would have been 0.3–0.6 ns smaller. The author saw the same with RC and RRDL.
- What was not touched stayed. Row Cycle, Bank Step and both refresh numbers did not move. This is also a check of the test itself: it does not invent changes.
- Row Hit moved less than CL. CL got 1.29 ns shorter, but a read from an open row gained only 0.75 ns on UMC0 and 0.45 ns on UMC1, while Row Closed shows the full change. This is how this memory controller behaves, not a measuring error: see PLATFORM CHECK.
- The result row followed. Lat P50 fell by 1.85 ns (−2.3%), Lat P99 by 3.8% and Game P99 by 4.1%: this is memory latency in the loads of DRAM LAB. Under load the gain grows: −2.0 ns at 37 GB/s with reads, −4.5 ns at 35 GB/s with writes, where the shorter CWL helps too. The latency curve at 256 MB moved by −2.1 ns and turned green.
- Refresh did not change, and so the slow reads stayed at about 7% in both runs.
Example 2: REFI 12076 → 65535
Next, the same memory with the timings of B from Example 1, and REFI raised from 12076 to its maximum, 65535. Nothing else changed. The result: 5 metrics better, none worse, 7 within noise.
In the refresh mode Mixed, which this PC uses, a refresh lasts RFC2: 496 clocks, or 160 ns. It comes every half of REFI: 12076 clocks are 3.90 µs, so a refresh comes every 1.95 µs; 65535 clocks are 21.1 µs, so a refresh comes every 10.57 µs.
- 1SYSTEM. The same BIOS 3902 and AGESA 1.3.0.1b Patch A in A and B.
- 2Boot. A and B come from different Windows starts, so the hint under the headline warns that training can shift latency by up to about 1 ns.
- 3REFI. The only changed setting: 12076 → 65535.
- 4Row Conflict on UMC1. The only timing that moved: 82.60 → 81.15 ns on UMC1, while UMC0 stayed at 81.8. See below.
- 5Refresh Period. 1.95 → 10.57 µs, +442.6%.
| Metric | A → B | Change |
|---|---|---|
| Refresh Period | 1.95 → 10.57 µs | +442.6%, better |
| Refresh Time | 161.9 → 162.2 ns | ≈ |
| Reads that waited, Slow Reads | 7.2% → about 1.5% | Refresh cost per read 7.31 → 1.33 ns |
| Lat P50 | 77.51 → 71.09 ns | −8.3%, better |
| Lat P99 | 88.1 → 81.5 ns | −7.4%, better |
| Game P99 | 99.2 → 91.1 ns | −8.1%, better |
| Read MT · Write MT | 24.54 → 24.85 · 25.42 → 26.32 GB/s | +1.3% · +3.5%, no colour |
| Row Conflict | 82.23 → 81.53 ns | −0.69 ns, better |
| Other timings | Row Hit, Row Closed, Row Cycle, Bank Step, Write → Read, Write Recovery | ≈ |
- The timings did not move. REFI decides how often the memory refreshes, not how fast a row opens.
- The waiting did. With REFI 12076 about one read in twelve ran into a refresh and waited up to 162 ns. One sample of Lat P50 is the average of 32 reads, so such waits land in most samples. The cost of refresh per average read fell from 7.31 to 1.33 ns, by 6 ns, and Lat P50 fell by 6.4 ns: two views of the same thing. Lat P99, Game P99 and the loaded latency followed, 6–10 ns lower everywhere.
- Why Row Conflict turned green. Only UMC1 moved, by 1.45 ns; UMC0 stayed exactly where it was. REFI acts on both channels alike, so this is most likely the new memory training after the restart, on one channel, and not REFI. In an average of both channels it would look as if REFI had sped up row conflicts. This is what the per-channel view is for.
Check the platform, not only the timings
DRAM LAB measures each channel separately and saves the BIOS and AGESA version with every run. That is why it also catches problems that do not come from your settings but from the platform: from the memory controller, its training and the AGESA code that AMD ships inside every BIOS.
A real case from the author's PC and the steps to check a BIOS update yourself are on a separate page: PLATFORM CHECK.
Good to know
- General rules for comparing two runs, A and B, are on the TESTS page.
- Some settings move together, such as CWL with CL: HYDRA lists every changed setting.
- Every BIOS change means a restart, and usually a new memory training. Now and then run the same settings twice in two restarts: the pair shows No known setting change and how far your system drifts by itself.
- Close monitoring and RGB software before the run. It adds slow reads and raises Lat P99; HYDRA names such programs in the warning before the start.
- DRAM LAB measures speed, not stability. After every change check the memory with ANVIL.
- DRAM LAB measures how fast the memory answers; DATA EYE measures how much safety margin its signals have.
- Runs from an older version of the test stay in the list, but they are compared only with runs of the same version.
- The bin deletes a run after a confirmation. Runs are saved in
RESULTS\ResultsDram_Lab.jsonnext to HYDRA. - Scripts can start DRAM LAB through the control pipe (API/SDK):
benchmark.dramLab.start,benchmark.dramLab.getStatusandbenchmark.dramLab.stop.
Something wrong or missing on this page? Tell us in Discord.