by sys_64738 · 2y ago · 0 comments
In my experience the most valuable benefit of ECC is the detection of aged memory modules.
All modern DRAM has a limited lifetime. Hopefully that lifetime is more than 5 years, but there are always some modules that may reach end-of-life much faster, especially on computers that are always on.
While on a new memory module it would be abnormal for memory errors to happen more frequently than a few times per year, on an aged module errors may happen many times per day, or even many times per hour.
I have encountered a few such cases that happened after several years of continuous using. Due to ECC I was notified about the errors and I could replace the offending modules before them becoming so bad as to guarantee data corruption.
Another reason is that even if ECC cannot prevent a RowHammer attack, it makes pretty certain that a RowHammer attack will be detected immediately (because the attacker cannot control the location of the flipped bits, and even if there are many errors, so they will be miscorrected, in most cases they will still be detected and logged and the administrator should always be instantly notified when there are two or more errors per day, as this will never happen normally).
When a similar problem occurred on a PC with ECC RAM, I got a warning message saying memory errors had been detected that repeated a few times, then I got a message saying one stick of RAM had been deactivated and that I could keep running. The Dell T3500 dropped from 24 GB to 20 GB and did not even need to be rebooted.
That is why I love ECC RAM and Xeon processors. I know if there is a problem and can wait to fix it.
I can buy used RAM and processors with confidence that the BIOS self rests will tell me what is good and what is bad.
Correct single bit errors and alert me to them.
The value of the notification is that if most days you get nothing and suddenly 5000 corrected errors pop up, you know something is not quite right as of late. Maybe you're overdoing the overclocking. Maybe the module isn't sitting quite well in the slot. Maybe a solder joint is failing.
If you have a 2 bit memory error, the typical result is a BSOD/kernel oops.
Which is a good thing actually. It means you know for sure your RAM is bad, and it prevents any faulty data from being written anywhere. So rather than possibly propagating the error is just stopped.
I believe there have been systems that try to handle it more elegantly. Kill the process the memory belongs to if it's a non-essential one then permanently blacklist that block to ensure it's not used again.
No I've set it up so I get an email.
> Because if yes, you'd get such a popup daily
I doubt that. There was a study done at Google that reported 8% of DIMMs encountered at least one memory error per year[0].
> I'm not sure what the actual value of it is.
I like my PC to be as deterministic as possible[1] so if my programs crash I don't want to have to turn it off and test the memory which takes hours[2].
[0] - https://www.cs.toronto.edu/~bianca/papers/sigmetrics09.pdf