Do CPUs make mistakes?
Asked Answered
A

1

6

Imagine that a regular computer intensively works for 5 years non-stop. The CPU always works at 100% and is constantly reading and writing to memory. Is it true that the computer will not make a single mistake?

Apostate answered 10/2, 2017 at 13:3 Comment(2)
I'm not sure to what extent this affects CPUs, but digital circuits with asynchronous inputs (such as external interrupts) experience metastability. The chances of an error are extremely low, though. I'd rather be concerned about DRAM errors.United
@United Metastability can be resolved with a synchronizer circuit.Ketene
K
4

Even in the absence of any errors caused by the CPU, storage elements are subject to bit flips (known as Single Event Upsets) from cosmic radiation. More information on that in Compiling an application for use in highly radioactive environments.

Radiation effects are more severe at higher altitudes, where the atmosphere provides less protection, so computers in Denver experience more bit flips than computers in Miami or Los Angeles. And similarly if you are designing equipment for use in a hospital near an X-ray machine.

Unless your hypothetical computer has an extremely small amount of memory, it is unlikely to work without any mistake for 5 years. Note however that some of the bit flips may occur in parts of the memory that you are not using, in which case they won't affect you.

You may find it interesting to read How to Kill a Supercomputer. Typical ECC (Error Correcting Code) memory can correct any single bit flip in a word, and can detect but not correct any two bit flips in a word. Note also that in some cases radiation can permanently damage memory cells, and those cells will never recover even after a cold start.

Ketene answered 10/2, 2017 at 20:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.