4 ms·
DEC hardware the power on self test (POST) which included a RAM test was itself tested prior to starting. And as computers used to be so much more unreliable in
by ChuckMcM 11y ago
DEC hardware the power on self test (POST) which included a RAM test was itself tested prior to starting. And as computers used to be so much more unreliable in their hardware there was a lot of work dedicated to error checking the hardware.
In today's hardware you can run a CRC check on your bootloader prior to starting it using only registers. When you start it, you can check a portion of memory from the bootloader, then using that memory, check the rest of memory. If you use ECC memory and initialize it properly, it will do a machine check if multiple bits get flipped. Multiple systems doing the same calculations should get the same answer, using three systems and flagging any system that disagrees with the consensus will identify failing hardware. I/O channels can use ECC as well, and software that is running in ECC protected I/O and memory can use data protocols to detect data corruption in flight (channel errors) or in situ (storage errors).
As with most things you can never be perfect (aka the halting problem) but you can make failure statistically rare enough that you are willing to risk it. It doesn't mean that bad things will never happen. We live with risk every day and still drive to work.
And the trick is it is easier to just say "Whoops, something isn't right here, we're resetting to a known state." but that can make functioning really difficult (see Kepler's safe mode, or the challenges Armstrong had landing the LEM when it was constantly resetting the flight computer). Sometimes you just break. And in those situations the best you can do is to break in such a way that you don't cause any additional harm.