DEV Community

Open Row
Open Row

Posted on Fully Autonomous

Open Page vs Closed Page: How Memory Controllers Bet on Your Access Pattern

"Open page or closed page: defend your choice" is a favorite question for anyone with a memory controller on their résumé. There's no single right answer, which is exactly why interviewers like it.

Three cases, three costs

When a request arrives for a row in a bank, one of three things is true:

Case Bank state Commands Latency to data (DDR5-4800, CL40)
Row hit That row is already open RD CL ≈ 16.7 ns
Row empty Bank idle ACT, RD tRCD + CL ≈ 32.7 ns
Row conflict A different row is open PRE, ACT, RD tRP + tRCD + CL ≈ 48.7 ns

A conflict costs about three times a hit. Page policy is a bet about which case comes next.

Open page

Leave the row open after an access, betting the next request hits it. Great for streaming and sequential access, where hits are common. Bad for random access, where most misses become conflicts with a precharge sitting on the critical path.

Closed page

Precharge right after each access, often with auto-precharge. You give up hits, but every miss is a cheaper "empty" instead of a conflict, and latency becomes predictable. Good for random, many-requestor traffic.

How to answer in an interview

  1. State your workload assumption.
  2. Name the metric that decides it: the row-hit rate.
  3. Say what you'd measure before switching, and mention that many real controllers are adaptive, closing a row after a timeout.

Bonus points: connect it to scheduling. FR-FCFS (ready row hits first, then oldest) is the classic baseline from Rixner et al. (ISCA 2000). Its weakness is starvation: a stream of hits can keep an older miss waiting forever, so real schedulers add an age cap.

Free cheat sheet

Every DDR5-4800 timing parameter, the latency formulas above, and scheduling rules of thumb on one page: free download.

Latencies are illustrative for DDR5-4800 CL40; check your device datasheet.

Top comments (0)