ECC vs non-ECC server memory: which do you need?
What error-correcting memory does, where ordinary memory is still fine, and what to do when a module in a server starts reporting errors.
- Module
- 2 of 4
- Level
- Foundation
- Time
- About 15 minutes
Before you start
None
You will be able to
- Explain what ECC memory corrects, what it only detects and what it records.
- Tell registered ECC modules from desktop memory and name where non-ECC is acceptable.
- Decide which machines in an estate must use ECC.
- Order a matching replacement module after a corrected-error alert.
Does your server need ECC memory?
The short answer
Use ECC memory in every server that holds business data. It corrects single-bit memory errors as they happen, detects double-bit errors instead of passing bad data on, and counts the errors it corrects, so a weakening module is flagged and replaced early. Non-ECC memory belongs in desktops, laptops and test machines you can rebuild.
By the KComputers Team
Published
In plain words
- What this is
- Memory that checks itself for flipped bits and fixes them before the server uses the data.
- Who needs it
- Anyone buying or maintaining a server that holds business data.
- If you get it wrong
- A flipped bit can sit unnoticed in a database or a backup for months, and wrong data spreads from there.
What ECC memory actually does.
Memory errors are a physical fact of life, not a sign of a bad batch. A cell in a DRAM chip can flip, from 1 to 0 or from 0 to 1, when it is struck by natural background radiation, disturbed by electrical noise or worn by age. In a desktop, one wrong bit might crash an application. In a server, the same bit can land inside a database page, a virtual machine or a file on its way to disk.
Error-correcting code (ECC) memory stores extra check bits with every word of data. A DDR4 ECC module carries 8 check bits for every 64 data bits. A DDR5 registered module (RDIMM) is split into two 32-bit channels, each with its own 8 check bits, so it is 80 bits wide where a desktop module is 64.
On every read, the memory controller in the processor works the check bits out again. If one bit has flipped, they show which one, and the controller corrects it before the data is used. If two bits have flipped, standard ECC cannot repair the word, but it detects the error, and the system halts or isolates the affected process rather than use bad data.
The server also counts the errors it corrects. When a module's error rate crosses a threshold, or the pattern suggests it may fail, HPE ProLiant servers record it in the Integrated Management Log, which you read in iLO, the built-in management controller, and flag the module, so it can be replaced in a planned window. Server platforms add stronger modes on top, such as Chipkill or SDDC, which can correct the failure of a whole memory chip on suitable modules. All of them start with ECC memory.
64 data bits
8 check bits, worked out from all 64 data bits
- Write. Data and check bits are stored together.
- Fault. One bit flips (the highlighted cell).
- Read. The check bits point to the flipped bit.
- Fix. The bit is corrected and the error counted.
ECC and non-ECC memory compared.
| ECC memory | Non-ECC memory | |
|---|---|---|
| One bit flips | Corrected; the server keeps running | Not detected; the wrong value is used |
| Two bits flip | Detected, and the system halts or isolates the affected process rather than use bad data. With SDDC or Chipkill-class ECC, two bits in the same memory chip are corrected | Not detected |
| Error records | Counted; a module with a rising error rate is flagged, for example in the HPE iLO Integrated Management Log | None |
| Module types | Registered (RDIMM) and unbuffered ECC (ECC UDIMM) | Desktop (UDIMM) and laptop (SODIMM) modules |
| Typical use | Servers, workstations and storage systems | Desktops, laptops and consumer devices |
| Cost | Higher: extra memory chips hold the check bits | Lower |
| HPE Gen12 servers (Xeon 6 and EPYC 9005) | Required: registered ECC modules only | Not supported |
DDR5's on-die ECC is not the same thing. It corrects errors inside each memory chip, but it does not protect data on its way to the processor, and it does not tell the server when it corrects something. Server DDR5 modules add full ECC on top.
Why every business server should run ECC.
The serious risk is not the crash. A crash is visible, and the server restarts. The risk is silent data corruption: a flipped bit that nobody notices, written into a database, a virtual disk or a backup, and copied onwards for months before anything looks wrong.
Three things make that more likely on a server than on a desktop:
- Capacity. A server with 512 GB of memory holds 32 times as many bits as a 16 GB desktop, so it has 32 times as many chances of a flip.
- Uptime. Servers run around the clock for years, often holding the same data in memory for long periods.
- Reach. One host may carry dozens of virtual machines or the company's ERP database, so one bad bit can touch many users.
Published studies of large server fleets have found memory errors far more common than many engineers assumed, and that a module which has produced errors is much more likely to produce more. That is why the server's error counts matter: they let you replace a weakening module on your schedule, not the module's.
Non-ECC memory is a fair choice where a wrong bit costs little: office desktops, laptops, thin clients and lab machines you can rebuild. If a machine holds the only copy of something, or many people depend on it, as with virtualization hosts and database servers, use ECC.
4.4 trillion
Worked example: a module flagged for corrected errors.
An example with assumed inputs, not a quotation or a customer case. Your server's log and HPE's documentation for your model set the real steps.
The alert
The Integrated Management Log, read in iLO, shows that one module, processor 1 DIMM 3 in this example, has passed its corrected-error threshold. The server is still running, and the data is still correct.
Identify the module
Note the slot and the HPE part number on the module's label; iLO also lists the memory installed. Note the server model and generation too.
Check the cover
If the server is under an HPE warranty, a support contract or an AMC, raise the alert under that cover first.
Order the match
Otherwise order one module with the same HPE part number, so that channel stays identical to the rest of the server.
Replace in a planned window
Move virtual machines or services off the server, shut it down, fit the new module in the same slot, then check the log after the restart.
| Server | 2 processors, 16 RDIMMs fitted |
|---|---|
| Alert | Processor 1, DIMM 3: corrected-error threshold passed |
| Server state | Running; data still correct |
| Order | 1 module, the same HPE part number |
| Downtime | One planned window |
| Outcome | Replaced before it fails |
An example, not a diagnosis or a quotation.
Buying ECC memory for a server you run.
Memory for an existing server has to match more than the capacity. Before you order, check four things:
- Module type. Registered (RDIMM), 3DS RDIMM or unbuffered ECC (ECC UDIMM). A server supports specific types, and types cannot be mixed in one server.
- Generation and speed. DDR4 and DDR5 are not interchangeable. Faster modules run at the speed the server supports, and mixed speeds run at the slowest.
- Ranks and size. Keep modules identical within each channel, and ideally across the whole server.
- Part numbers. For HPE ProLiant, order the HPE memory part number listed for your model and generation.
Send us the server model, or the part numbers of the modules already fitted, and we quote memory that matches, with part numbers on every line. Sizing memory for a new server instead? Our guides to how much RAM a server needs and building a 256 GB or 512 GB server work through capacity and module layouts.
Server memory
ECC modules for HPE ProLiant, quoted by part number.
HPE ProLiant Gen12
DDR5 rack and tower servers on Intel Xeon 6 and AMD EPYC 9005.
Configure a server
Processors and memory, checked line by line before you ask for a price.
How much RAM does a server need?
Size the total from the workload before you choose modules.
Engineer's notes.
Before you order: check, and avoid these mistakes.
Decision checklist
Common mistakes
-
Fitting desktop memory in a server.
- Why it hurts
- Gen12 servers on Xeon 6 and EPYC 9005 accept only registered ECC modules, and the server may not start.
- Do this instead
- Order the registered ECC module listed for the model.
-
Assuming DDR5's on-die ECC is the same as server ECC.
- Why it hurts
- On-die ECC corrects errors inside each chip, but does not protect data on its way to the processor and does not tell the server.
- Do this instead
- Use server DDR5 modules, which add full ECC on top.
-
Ignoring corrected-error alerts because the data is still right.
- Why it hurts
- A module that has produced errors is more likely to produce more, and eventually an uncorrectable one.
- Do this instead
- Replace it in a planned window.
-
Mixing module types or sizes in one server.
- Why it hurts
- Types cannot be mixed, and other mixes can lower speed or stop the server booting.
- Do this instead
- Use identical part numbers in every channel.
Check what you learned.
Check your understanding
A DDR4 ECC module stores 64 data bits with 8 check bits. One data bit flips. What happens, and what if two flip?
Show the answer to question 1
One flipped bit is located by the check bits and corrected before the data is used, and the error is counted. Two flipped bits cannot be repaired by standard ECC, but are detected, so the system halts or isolates the process instead of using bad data.
Does the on-die ECC in every DDR5 chip mean desktop DDR5 is safe in a server?
Show the answer to question 2
No. On-die ECC works inside the chip only. It does not cover the path to the processor and it does not report corrections. Server modules add full ECC on top.
iLO reports corrected errors on one module and the server runs normally. What do you do?
Show the answer to question 3
Identify the slot and part number, check warranty or support cover, order one module with the same part number and replace it in a planned window. The data is still correct, which is exactly why this is the time to act.
Where is non-ECC memory a fair choice?
Show the answer to question 4
Where a wrong bit costs little and the machine can be rebuilt: office desktops, laptops, thin clients and lab machines. Not where a machine holds the only copy of data or many people depend on it.
Key takeaways
- Use ECC memory in every server that holds business data.
- ECC corrects one flipped bit, detects two and counts what it corrects.
- DDR5's on-die ECC is not server ECC.
- Replace a module that is reporting corrected errors in a planned window, with the same part number.
Sources and standards
- Schroeder, Pinheiro and Weber (Google), SIGMETRICS 2009, DRAM Errors in the Wild: A Large-Scale Field Study, read . A field study of memory errors across a large server fleet: errors are common, and a module that has produced errors is more likely to produce more.
- Hewlett Packard Enterprise, HPE ProLiant DL380 Gen12 product page and QuickSpecs (a00073551enw), read . Gen12 servers use DDR5 memory; model, processor and memory facts come from this page and its QuickSpecs.
- Hewlett Packard Enterprise, HPE ProLiant ML30 Gen11 product page, read . An entry-level model that takes unbuffered (UDIMM) memory.
- Wikipedia (readable summary), DDR5 SDRAM, read . All DDR5 chips have on-die ECC, which does not report corrections to the processor; each module has two subchannels, with 36 or 40 data lines each for ECC modules, 80 in all.
ECC memory questions
Is DDR5 memory ECC by default?
No. Every DDR5 chip has on-die ECC, which corrects errors inside the chip, but it does not protect data on its way to the processor and does not tell the server when it corrects one. Server DDR5 modules (RDIMMs) add full ECC on top; ordinary desktop DDR5 modules do not.
What does a corrected memory error alert mean?
ECC has been correcting errors on one module more often than the server's threshold allows, or in a pattern that suggests the module may fail. The data is still correct, but replace that module in a planned window with the same part number, under warranty or support cover if the server has it.
Can I use desktop memory in a server?
Not in servers built on AMD EPYC 9005, or on the Intel Xeon 6 processors in HPE's Gen12 line: they accept only registered ECC modules. Some entry-level servers, such as the HPE ProLiant ML30 Gen11, take unbuffered ECC modules instead; choose the ECC version listed for the model.
Does ECC memory make a server slower?
Not in any way you would notice. The checking happens in the memory controller as data is read. Registered modules add a very small delay for their register chip, which is what lets a server carry far more memory than a desktop.
Can I mix memory sizes or brands in one server?
It is best not to. Some mixes are allowed within the server's rules, but differences in rank, speed or capacity can lower performance or stop the server booting. Identical part numbers in every channel are the safe choice.
Do workstations need ECC memory?
If a workstation runs long simulations or CAD and CAE models, or holds work that is expensive to redo, yes. Professional workstation platforms support ECC memory for exactly this reason.
What to tell us
- The server model and generation, or the part numbers of the modules fitted
- How much memory you need and whether you are adding to or replacing modules
- Whether the server is under warranty, support or AMC
- The message or slot iLO reports, if a module has been flagged
- When a maintenance window is possible
Need memory for a server you run?
Send the server model or the part numbers of the modules fitted. A server specialist replies with matching memory and a formal quotation.