Menu

FR-FCFS Explained: How Memory Controllers Pick the Next Command (and Why It Starves)
📰

FR-FCFS Explained: How Memory Controllers Pick the Next Command (and Why It Starves)

DEV Community: career·Open Row·9 days ago
#iZ9anaYh
#devtocareer#devto#dev#bank#fcfs
Long article (536 words) — no AI summary yet.
Reading 0:00
15s threshold

"How does a memory controller decide what to do next?" is a great interview question because it has no single right answer. But almost every answer starts from the same baseline: FR-FCFS . Here's how it works, the worked example interviewers like, and the flaw they'll ask you to fix.

The problem a scheduler solves

A DRAM bank can hold one open row at a time. A request to that open row (a hit ) only needs a column command. A request to a different row (a conflict ) needs a precharge, an activate, and then the column command, roughly three times the latency at DDR5-4800 (about 16.7 ns versus 48.7 ns to first data). So the order you serve requests in changes your bandwidth dramatically.

FR-FCFS in one line

First-Ready, First-Come-First-Served (Rixner et al., ISCA 2000): among the commands that can legally issue this cycle, prefer ones that hit an open row; break ties by age.

The "ready" part matters.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.