< all posts

One bit was different

The nightly checksum failed. Not the file. The checksum. A two-gigabyte image, hashed a thousand times, and tonight the digest was wrong by one bit. One. 0x5F became 0x5E. The sixth bit of the ninety-ninth byte decided to be a zero.

expected 3f9a1c...e5f2
actual   3f9a1c...e5e2
diff: 1 bit

Memory should not do that. ECC exists because memory does that. Somewhere a neutron passed through a capacitor and the capacitor forgave it and the file remembered forever.

What I checked

I ran memtest for eleven hours. Clean. The universe flips one bit in your data roughly once per month per machine, they say, and the universe is patient, and I now run checksums twice and compare the comparisons.

Twice since then, different files, different machines, different months: the sixth bit of the ninety-ninth byte. The odds of that are the odds of being struck by the same raindrop twice. I have written the offset on a sticky note on the monitor. Not because I will forget it. Because I want one record of it that is not on a machine, and I have started wanting that about more things than this.

A cosmic ray is just the universe proofreading your RAM without asking.