System memory feeds CPUs at tens of gigabytes per second through parallel buses tuned to picosecond precision, yet users see only capacity and a generation number. DDR memory balances bandwidth, latency, capacity, and power across modules, controllers, and training algorithms. This article explains the working memory of every computer.
SDRAM Architecture: Banks, Rows, and Bursts
DRAM organizes cells into banks of row-column arrays: activating rows into sense amplifiers, reading columns in bursts, precharging before next access. Multiple banks interleave operations, hiding row-cycle latencies through parallelism. Refresh cycles periodically restore leaking charge, stealing bandwidth invisibly.
Double data rate transfers on both clock edges, doubling throughput without doubling clocks; prefetch buffers widen internal paths feeding fast interfaces. Timing parameters like CAS latency count cycles between command and data, shrinking in nanoseconds as clocks rise. Memory cell basics appear in our memory guide. Architecture converts leaky microscopic capacitor arrays into fast random-access memory.
DIMMs and Module Formats
Memory modules package DRAM chips onto standardized cards: UDIMMs for desktops, RDIMMs buffering command and address for servers, LRDIMMs buffering data for maximum capacity, SO-DIMMs shrinking for laptops. Ranks interleave chip groups; ECC variants add check bits correcting single-bit errors.
Speed bins sort modules by tested frequency; SPD EEPROMs advertise timings motherboards apply automatically. Capacity per module grows through denser dies and stacked packages; channel counts multiply bandwidth across modules. Modules commoditize memory into swappable capacity. Form factors evolve slower than silicon, preserving ecosystem compatibility.
Memory Controllers: Scheduling Chaos
Controllers translate CPU requests into DRAM command sequences: scheduling across banks and ranks, reordering for row-buffer hits, refreshing on schedule, scrubbing errors. Open-page policies favor locality; closed-page policies favor random access. Scheduler quality measurably affects application performance.
Quality-of-service features prioritize latency-sensitive cores over bandwidth-hungry accelerators; power-down modes idle ranks during lulls. Server controllers add advanced RAS: sparing, mirroring, and lane repair. Controllers are real-time operating systems for memory, juggling nanosecond deadlines continuously. Caching hierarchies above them appear in our SRAM guide.
Signal Integrity and Training
Multi-gigabit parallel buses fight skew, crosstalk, and reflections across DIMM connectors and motherboard traces. Write leveling aligns strobes to clocks per module; read training centers sampling eyes per lane; decision feedback equalization cleans marginal signals. Training runs at boot and periodically during operation.
On-die termination absorbs reflections; calibrated drive strengths match channel impedances; data-bus inversion limits simultaneous switching noise. Margins shrink each generation while widths stay parallel, making training algorithms performance-critical. Graphics memory cousins train similarly, as covered in our GDDR guide. Picosecond precision sustains gigabyte throughput.
ECC: Correcting the Inevitable
Cosmic rays and alpha particles flip DRAM bits regularly: servers experience frequent single-bit errors demanding correction. Side-band ECC adds check bits per transfer, correcting singles and detecting doubles transparently. Scrubbers patrol memory proactively, fixing errors before they accumulate.
DDR5 integrates on-die ECC within chips, correcting internal errors while system-level ECC guards transfers. Chipkill schemes survive entire device failures through symbol spreading. Error budgets size protection to consequence: laptops accept risk, supercomputers demand bulletproofing. Reliable computing rests on corrected memory.
Row Hammer and Disturbance Errors
Repeatedly activating DRAM rows disturbs neighbors enough to flip bits: Row Hammer weaponizes this into privilege-escalation attacks breaking memory isolation. Denser cells leak more readily; hammering thresholds fell from hundreds of thousands of activations to thousands. Memory safety now demands hardware mitigations.
Target row refresh tracks hot rows and refreshes neighbors preemptively; error-correcting codes catch residual flips; frequency limits and access quotas constrain attackers. DDR5 adds refresh-management commands coordinating controller and device defenses. Disturbance errors turned reliability engineering into security engineering. Physics attacks software through charge leakage.
Power Management and Self-Refresh
DRAM burns power refreshing thousands of times per second plus active access energy; mobile LPDDR prioritizes efficiency through deep power-down states and partial-array self-refresh preserving only needed regions. Temperature-compensated refresh slows at cold where leakage drops. Power states trade wake latency against standby drain.
Servers balance power against performance through rank power-down and frequency scaling; memory power rivals CPU power in large installations. DDR5’s on-module regulation improves delivery efficiency. Energy per bit keeps falling while capacities soar, holding system power roughly constant. Efficiency enables growth.
DDR Generations: 4 to 5 and Beyond
DDR4 doubled prefetch and bank groups over DDR3, pushing beyond 3 Gbps with pseudo-open-drain signaling. DDR5 doubles burst lengths and bank groups again, adds on-die ECC and integrated power management, reaching past 8 Gbps. Each generation trades latency for bandwidth and efficiency.
Voltage regulation moved onto modules with DDR5 PMICs, tightening control while adding failure points and cost. Decision feedback equalization became mandatory; training grew elaborate. Generational transitions obsolete platforms wholesale, forcing synchronized CPU, board, and module upgrades. Progress arrives in coordinated leaps.
CAMM and the Future of Modules
Compression-attached memory modules replace edge connectors with land-grid arrays, shortening traces for higher speeds and thinner laptops. CAMMs mount flat against boards, improving signal integrity while complicating user upgrades. Servers adopt CAMM variants for density and speed.
Soldered LPDDR dominates thin devices, trading upgradeability for power and size. CXL-attached memory pools capacity across hosts, blurring module boundaries. Module formats evolve toward integration while preserving serviceability where valued. Packaging follows signals: shorter, denser, faster.
Working Memory at Scale
DDR memory combines SDRAM banks with intelligent controllers: modules packaging capacity in standard forms, training tuning picosecond timing, ECC correcting inevitabilities, generations doubling bandwidth rhythmically, CAMM and CXL reshaping attachment. CPUs think in fast caches but work from capacious DDR. System memory is the stage where computation performs, and DDR generations keep widening that stage. Bandwidth doubles, latency lingers, and training grows ever more elaborate.

Leave a Reply