DRAM & Memory Design · All levels
Row Buffer Locality and Page Policy: Worked Example
Worked Example for Row Buffer Locality and Page Policy.
Worked example
Worked Example for Row Buffer Locality and Page Policy focuses on Row-hit ratio, average service latency, and ACTIVATE/PRECHARGE energy per request for target workloads.. The purpose is to turn memory observations into mechanism-backed actions with explicit owners and release-safe validation.
A field regression flags Row-hit ratio, average service latency, and ACTIVATE/PRECHARGE energy per request for target workloads.. Proper triage locks environment tags, compares baseline vs failing traces, isolates first repeated loss transition, and validates one bounded mitigation before release.
This pattern prevents reactive tuning. The goal is to preserve both performance and reliability while avoiding hidden regressions that appear only at corner conditions.
System view
CONTROLLER QUEUE VIEW - Row Buffer Locality and Page Policy
read queue : [R12 bank0 row88] [R13 bank2 row88] [R14 bank0 row12]
write queue: [W44 bank3 row90] [W45 bank3 row90]
scheduler tick:
1) prioritize ready row hits
2) cap write-drain burst
3) age outstanding reads
issue stream:
cycle 40 -> RD bank0 row88 (hit)
cycle 41 -> RD bank2 row88 (parallel bank group)
cycle 42 -> ACT bank0 row12 (miss prepare)Subarray and row-buffer topology (Row Buffer Locality)
BANK INTERNAL ORGANIZATION
Row decoder
|
+-------+----------------------------------------------------+
| BANK k |
| +-----------+ +-----------+ +-----------+ |
| | Subarray0 | | Subarray1 | | Subarray2 | ... |
| | WL x BL | | WL x BL | | WL x BL | |
| +-----+-----+ +-----+-----+ +-----+-----+ |
| | | | |
| [sense amps / local row buffer slices] |
| \ | / |
| +-- global row buffer --+ |
+-----------------------------------------------------------+
Longer WL/BL improves row size but raises RC delay, ACT energy, and sensing time.Capture baseline and failing command traces under fixed metadata.
Verify row-hit/miss mix, turnaround cadence, and refresh impact.
Collect Page-policy tuning dossier: row-hit histograms, tail-latency impact, and energy-per-access breakdown..
Patch one bounded fix with explicit owner signoff.
Re-run closure matrix and choose ship/rollback.
DRAM deep dive
Cell-array and subarray organization determines bitline delay, sensing margin, and locality-sensitive energy cost.
Concept diagram
ARRAY ORGANIZATION VIEW
rows x columns -> mats/subarrays -> local sense amps -> global I/O
physical distance shapes timing and energyMetric graph
ARRAY ACCESS COST SHARE
bitline settle delay ██████
sense/restore time █████
global routing overhead ███Reports and artifacts
subarray toggle heatmap
sense-amplifier utilization report
bitline RC delay audit
wordline coupling checklist
Mini case study
A dense address remap increased long-bitline activations, creating extra tRCD guardband and persistent tail-latency drift.
Debug branches
Map hot addresses to mats and subarray boundaries
Inspect sense-margin behavior under temperature corners
Evaluate row-mapping changes before voltage retuning
Senior review question
Ask: which latency, bandwidth, and reliability evidence proves this DRAM topic is closed under real traffic?
Key takeaways
Always tie controller and PHY counter shifts to application latency and throughput outcomes.
Lock firmware timing profile, thermal condition, and DIMM state before comparing DRAM captures.
Common pitfalls
Chasing peak bandwidth while ignoring p99 latency and fairness tails.
Changing timing guardbands without separating SI noise from scheduling issues.
Declaring closure without reliability gates, fault injection, and regression replay.
Worked-example reasoning
Suppose Row-hit ratio, average service latency, and ACTIVATE/PRECHARGE energy per request for target workloads. regresses on a production workload. A shallow response only tweaks timing or queue weights. A deeper response compares baseline and failing traces, then identifies the first repeated loss mechanism in Each open row behaves as a row buffer: column commands to that same row avoid a new ACTIVATE and can return data at much lower latency/energy than row misses. When access streams exhibit strong locality, open-page policy preserves row state and amortizes activate cost; when locality is weak or adversarial, leaving rows open increases conflict probability and can hurt tail latency. Closed-page policy reduces future conflict uncertainty but pays activation overhead more frequently. The optimal policy is workload- and topology-dependent because row-buffer behavior couples directly to bank-level contention and refresh/maintenance windows. Controller design must combine address mapping, request reordering, and fairness constraints to harvest locality without starving latency-critical traffic..
If command waste dominates, inspect row policy and turnaround cadence. If blocked cycles dominate, inspect refresh scheduling and QoS windows. If margin loss dominates, inspect lane shmoo and thermal drift.
Only then choose a bounded fix: mapping update, scheduler policy change, refresh strategy adjustment, firmware retrain rule, PHY calibration, or package/SI correction.