Sub topic 9
RAM Features: ECC, Dual Channel, Speed Ratings, and Timings
This chapter assumes you can already tell DDR3, DDR4, and DDR5 apart and know the DIMM and SODIMM form factors from the previous chapter. You should also be comfortable with units such as MT/s, MB/s, and nanoseconds. Here you will learn four features that separate one memory kit from another: error correction, channel configuration, speed ratings, and timings.
ECC memory
ECC (error-correcting code) memory detects and corrects single-bit errors. A single-bit error happens when one stored bit flips from 0 to 1 or the reverse. Causes include electrical noise and cosmic radiation.
A standard ECC module stores extra check bits next to each 64-bit word. A typical ECC DIMM is 72 bits wide: 64 data bits plus 8 check bits. The memory controller uses the check bits to find and fix a one-bit error. It can detect, but not fix, many two-bit errors.
ECC matters in servers, workstations, and financial or scientific systems, where one silent flipped bit can corrupt data. Consumer desktops usually use non-ECC memory because it is cheaper and slightly faster.
Compatibility rules for ECC:
- The CPU and chipset must support ECC. Many consumer platforms do not.
- The motherboard must support ECC modules.
- Some boards accept ECC modules but run them with ECC turned off.
- Registered (buffered) DIMMs, called RDIMMs, are common in servers. They add a register chip that reduces electrical load on the controller, so a system can hold more modules. They usually cannot be mixed with unbuffered DIMMs (UDIMMs).
DDR5 adds on-die ECC inside each chip. This corrects errors within the chip itself. It is not the same as full ECC, which protects the data path between the module and the CPU.
Channels: single, dual, triple, and quad
A channel is an independent 64-bit data path between the memory controller and the modules. More channels means more data moves per transfer, so peak bandwidth rises.
| Configuration | Typical use | Peak bandwidth vs. single channel |
|---|---|---|
| Single channel | One module, or mismatched setups | 1x |
| Dual channel | Mainstream desktops and laptops | 2x |
| Triple channel | Some older high-end platforms (DDR3) | 3x |
| Quad channel | Workstations and servers | 4x |
To get dual channel, install matched modules in the correct slots. Motherboards usually color-code the slots. On a four-slot board, the same-colored slots are often the pair for one channel pairing, so you populate slots 2 and 4 first, or the slots the manual names. Always read the manual, because slot order varies.
Best practice is to use a matched kit: two modules with the same capacity, speed, and timings, sold together. Mismatched modules can still work. The system generally runs everything at the speed of the slowest module. Some boards fall back to flex mode, where only the matching portion of the memory runs in dual channel.
DDR5 changes the picture slightly. Each DDR5 DIMM contains two independent 32-bit subchannels. A single DDR5 module still has a 64-bit total width, but two modules in a system are still described as dual channel.
The calculation from the earlier code example gives peak bandwidth: transfer rate x 8 bytes x channels.
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 figure is a theoretical maximum. Real programs reach less than the peak.
Speed ratings
Memory speed is labeled in two ways, and the exam expects you to read both.
- The chip rating names the transfer rate. DDR4-3200 means 3200 MT/s (megatransfers per second).
- The module rating names the bandwidth in MB/s. PC4-25600 means 25,600 MB/s.
The module label uses "PC" plus the generation number. PC3 is DDR3, PC4 is DDR4, and PC5 is DDR5.
| Chip rating | Module rating | Transfer rate | Peak bandwidth (single channel) |
|---|---|---|---|
| DDR3-1600 | PC3-12800 | 1600 MT/s | 12,800 MB/s |
| DDR4-2666 | PC4-21300 | 2666 MT/s | 21,328 MB/s (rounded to 21300 on the label) |
| DDR4-3200 | PC4-25600 | 3200 MT/s | 25,600 MB/s |
| DDR5-4800 | PC5-38400 | 4800 MT/s | 38,400 MB/s |
Do not confuse MT/s with MHz. DDR stands for double data rate, meaning data moves on both the rising and falling edges of the clock signal. DDR4-3200 therefore has an actual clock of 1600 MHz. Marketing often says "3200 MHz", which is technically the transfer rate.
Rated speeds above the standard JEDEC baseline usually come from an XMP (Intel Extreme Memory Profile) or EXPO (AMD) profile stored on the module. The board runs the module at its default JEDEC speed until you enable the profile in firmware. If you buy DDR4-3600 but never turn on XMP, it may run at 2133 or 2400 MT/s. The platform also limits the speed: a CPU or board that supports only DDR4-2933 will not reach DDR4-3600.
Timings
Timings measure latency, the delay between a request and the data. They are listed as a series of numbers counted in clock cycles, for example 16-18-18-38.
| Timing | Name | Meaning |
|---|---|---|
| CL (tCL) | CAS latency | Cycles between a read command and the first data |
| tRCD | RAS to CAS delay | Cycles to open a row before accessing a column |
| tRP | Row precharge time | Cycles to close one row before opening another |
| tRAS | Row active time | Minimum cycles a row stays open |
Lower numbers are faster when the clock is the same. But the clock differs between generations, so compare real time in nanoseconds:
first-word latency (ns) = CL x 2000 / transfer rate (MT/s)
For DDR4-3200 CL16: 16 x 2000 / 3200 = 10 ns. For DDR4-2400 CL15: 15 x 2000 / 2400 = 12.5 ns. A higher CL on a faster module can still give lower real latency. DDR5-4800 CL40 gives 40 x 2000 / 4800, about 16.7 ns, so DDR5 starts with higher latency than DDR4 but much higher bandwidth.
Checking your memory
On Windows, list each installed module with its capacity, speed, and slot.
Get-CimInstance Win32_Processor | Select-Object Name, NumberOfCores, NumberOfLogicalProcessors
Get-CimInstance Win32_PhysicalMemory | Select-Object Manufacturer, Capacity, Speed, DeviceLocatorThe Speed value is the rated speed. If it reads lower than the label on the module, XMP is probably off. On Linux, use these commands.
lscpu
sudo dmidecode -t memoryThe dmidecode output shows the type (DDR4), the speed, and the configured speed. It also shows whether the total width is 72 bits and the data width is 64 bits, which indicates ECC.
Common errors
- Installing one module and expecting dual channel.
- Putting two modules in the wrong slots, so both share one channel.
- Mixing DDR generations. DDR3, DDR4, and DDR5 use different notch positions and are not interchangeable.
- Buying ECC modules for a board that does not support ECC.
- Leaving XMP or EXPO disabled and running below the rated speed.
- Reading a high CL number as slower without comparing the clock speed.
Exercise
A technician installs two matched DDR4-3200 modules in a desktop. Task Manager and the firmware show only 2400 MT/s. What is the likely cause, what is the peak bandwidth of the dual channel setup at the rated speed, and what is the module label?
Show answer
The XMP profile is probably disabled, so the board runs the modules at a default JEDEC speed. At the rated 3200 MT/s, dual channel peak bandwidth is 3200 x 8 x 2 = 51,200 MB/s. Each module is labeled PC4-25600.
Exercise
Which has lower first-word latency: DDR4-3600 CL18 or DDR4-3000 CL15? Show the calculation.
Show answer
DDR4-3600 CL18 = 18 x 2000 / 3600 = 10 ns. DDR4-3000 CL15 = 15 x 2000 / 3000 = 10 ns. They are equal, even though the CL numbers differ.
Exercise
A server uses 72-bit-wide DIMMs, with 64 data bits and 8 extra bits. What feature does this indicate, and what can it do?
Show answer
It indicates ECC memory. It can detect and correct single-bit errors and detect many two-bit errors.