Sub topic 9
RAM features: ECC, dual channel, speed ratings, and timings
This chapter assumes you know the DDR generations and the DIMM and SODIMM form factors from the previous chapter. It covers four features that appear on module labels and in exam questions: error correction, channels, speed ratings, and timings.
ECC memory
ECC (error-correcting code) memory detects and fixes single-bit errors, and it detects some larger errors. It stores extra check bits with each word of data. A standard module has 8 chips per rank, and an ECC module adds a ninth chip, giving a 72-bit word instead of 64 bits.
ECC is used in servers and workstations, where a flipped bit could corrupt a database. It costs more and runs slightly slower. The CPU and chipset must also support it. Non-ECC memory is the norm in consumer PCs.
A related term is registered (buffered) memory, which adds a register between the chips and the memory controller. It allows more modules per channel on servers. Registered modules usually cannot be mixed with unbuffered ones.
Single, dual, and quad channel
A channel is an independent 64-bit path between the memory controller and the modules. With two channels, the controller reads and writes both at once, which doubles peak bandwidth. Server and workstation boards may offer quad channel.
To get dual channel:
- Install matched modules, ideally the same capacity, speed, and timings, or a kit sold as a pair.
- Place them in the correct slots. Boards usually color-code the slots, and the manual shows which pairs to fill.
Mismatched modules still work, but the board may drop to single channel or run everything at the slowest module's speed.
Speed ratings
Two naming schemes describe the same speed. The first gives the transfer rate: DDR4-3200 performs 3200 million transfers per second (MT/s). The second gives peak bandwidth in MB/s: PC4-25600. A DIMM moves 8 bytes per transfer, so 3200 x 8 = 25600.
def peak_bandwidth_mb_s(transfer_rate_mt_s, channels=1, bus_width_bytes=8):
"""Peak memory bandwidth in MB/s: transfers per second x bytes per transfer x channels."""
return transfer_rate_mt_s * bus_width_bytes * channels
print(peak_bandwidth_mb_s(3200)) # DDR4-3200 single channel: 25600 (the PC4-25600 rating)
print(peak_bandwidth_mb_s(3200, channels=2)) # dual channel: 51200The PC prefix includes the generation number: PC3 is DDR3, PC4 is DDR4, and PC5 is DDR5.
Timings
Timings measure latency in clock cycles. They appear as a series such as CL16-18-18-38. The first number, CAS latency (CL), is the delay between a read command and the data being available. Lower numbers at the same speed mean faster response.
Compare modules by real time, not by CL alone. A faster clock shortens each cycle, so a higher CL at a higher speed can have a similar delay.
Checking installed memory
The Windows command lists each module's capacity, speed, and slot:
Get-CimInstance Win32_PhysicalMemory | Select-Object Manufacturer, Capacity, Speed, DeviceLocatorOn Linux, sudo dmidecode -t memory gives the same detail.
Exercise
A technician installs one 16 GB DDR4-3200 module in a board that supports dual channel. What is the peak bandwidth, and what change would double it?
Show answer
3200 x 8 = 25600 MB/s (PC4-25600). Adding an identical second module in the matching slot enables dual channel, giving 51200 MB/s.
Exercise
Which feature adds a ninth chip to a module so it can correct single-bit errors, and where is it typically used?
Show answer
ECC memory, used mainly in servers and workstations.