Androidgrl's Blog About 3D Printing & Tech, by Jamie Kawahara

The Effect of Cosmic Rays on Software Errors

In my previous blog post I gave an overview of how RAM memory chips store each individual “bit” of binary code inside individual nano-sized capacitors. In this post I would like to discuss the phenomenon of cosmic ray “bit flipping” in which a cosmic ray hitting such a nano-capacitor can cause it to flip from “0” to “1” or vice versa, and the effect that this has on software errors.

Cosmic rays are not actually energy waves, but high energy atomic particles that constantly shower Earth’s atmosphere. Most of these particles originated from supernova star explosions and most of them are atomic nuclei stripped of their electrons. When these particles hit Earth’s atmosphere they cause showers of secondary particles which can reach the Earth’s surface. Most of these secondary particles consist of energetic neutrons. If a secondary particle happens to hit a RAM nano-capacitor it can cause it to switch it’s state from un-charged to charged, or vice versa. This is called a “bit flip” since the bit’s value changes from “0” to “1”, or vice versa.

It is roughly estimated that an average desktop computer experiences 1 bit flip per week per 1GB of RAM (wikipedia). By extrapolation, if a computer has 16GB of RAM then it could possibly have about 2 bit flips per day. For most consumer electronics this is not enough to cause serious problems. However, for servers responsible for financial transactions or scientific calculations, a single bit flip could result in a very serious failure. For example, a bit flip could potentially cause a digit in someone’s bank account balance to change. Although computers can be protected from cosmic rays by burying them underground, the most practical way to protect data from cosmic ray induced errors is to use ECC memory chips. ECC memory or “error correcting code memory” is a special kind of memory chip that has dedicated circuitry to detect single-bit errors and correct them.

The amount of cosmic ray exposure greatly increases with altitude. A computer in Denver may receive four times more than one in New York, a computer in an airplane may receive 300 times more, and a computer in space may receive 1000 times more (radioactivity.eu). Most computers used in spacecraft use “radiation hardened” chips. These are memory chips which are made from relatively less conductive materials, which increase the amount of energy necessary to switch between states, and therefore make it less likely that a cosmic ray would carry enough energy to cause a bit flip.

In summary, cosmic ray induced software errors is a real phenomenon. Computers which cannot tolerate any data corruption under any circumstances like those used in financial transactions must use special ECC memory to protect against it. Computers in spacecraft require the use of radiation hardened chips.

For a detailed examination of the physics behind radiation-induced software errors see Radiation-Induced Soft Errors in Advanced Semiconductor Technologies, by Robert C. Baumann