ECC memory
From WikiTech, the free technology encyclopedia
Computer memory that detects and fixes its own errors
4 sources from Tom's Hardware, Lenovo, Kingston Technology and 1 more. Checked by ByteExplained editors on 5 December 2026. How we check facts
ECC memory (error-correcting code memory) is a type of computer memory that can detect and automatically correct errors in the data it holds, helping to prevent data corruption and crashes.[1] It is common in servers and workstations, and the same principle is used in networking equipment and storage devices.[2]
Why memory errors happen
Data in Dynamic random-access memory (DRAM) can be altered by electrical noise, voltage fluctuations, timing shifts, heat and even cosmic background radiation.[3] These temporary "bit flips" are known as soft errors; hard errors, by contrast, come from physical defects in a chip, recur in the same places and usually mean the module must be replaced.[3] A 2009 study by Google researchers of a large fleet of servers over 2.5 years found that more than 8% of memory modules were affected by errors each year, and that hard errors were more common than had been assumed.[4]
How it works
When data is written, the memory controller calculates extra check bits and stores them in additional DRAM chips on the module; when the data is read back, the bits are recalculated and compared.[3] A typical ECC module therefore carries nine memory chips instead of eight.[1] Server modules commonly use a scheme called "single error correct, double error detect" (SECDED): a single wrong bit is fixed automatically, while errors in two or more bits are flagged so that the system knows the data cannot be trusted.[3][1] Simpler parity memory uses one extra bit and can only detect, not correct, an error.[2] Codes used for ECC include Hamming codes, Reed–Solomon and BCH codes.[2]
Trade-offs
ECC modules cost more because of the extra chips, and the checking makes them very slightly slower.[1] It is aimed at settings where data integrity matters, such as financial institutions and public cloud providers, and many consumer motherboards either do not support ECC or run ECC modules without error correction.[1] DDR5 memory adds a separate "on-die" ECC that corrects single-bit errors inside each chip, benefiting all DDR5 systems, not only those with ECC modules.[3]
See also
References
- ^ What Is ECC Memory in RAM? A Basic Definition. Tom's Hardware. 2019-03. tomshardware.com
- ^ What is ECC?. Lenovo. lenovo.com
- ^ How ECC works in memory. Kingston Technology. kingston.com
- ^ DRAM Errors in the Wild: A Large-Scale Field Study. Google Research. 2009. research.google




