by InvaderFizz · 4y ago · 0 comments
From my understanding, the only risk to your data from non-ECC is a bit flip in RAM, pre-checksum calculation. In that unlikely scenario, you commit bad data to disk as good data(valid checksum). Bitrot isn't a factor, at all.
If your data is important enough to warrant ECC RAM, you should get ECC RAM whether you use ZFS or not.
If you want to use ZFS (for its volume management, compression, mirroring, healthchecks, whathaveyou), you should do so whether or not you have ECC RAM.
If you’re using ZFS for other reasons, then you be you I guess.
Wouldn't an option to do it twice in different memory regions be nice? I'm pretty sure in many use cases scarifying performance for greater reliability wouldn't be an issue. Given how many cores we have available nowadays it could potentially even not have that much impact on performance.
Also are there any software solutions (like a kernel patch) which would do "software ECC"? I imagine in this case performance hit would be quite devastating but it still could be acceptable trade-off for NAS-like systems where you want to have lots of RAM for dedup and cache but it's not a busy system.
Otherwise a bit flip that early during read shouldn't matter because you're checking it against the disk checksum.
If you don't have disk checksums then ECC memory is not where you should be putting effort to keep things safe.