Earlier quoted context omitted.
You can either not editorialize the title, and accept that the thread contains updates, or editorialize it and violate HN guidelines. Either choice will lead somebody to complain
It's clear from the guidelines: https://news.ycombinator.com/item?id=38365934#38368867 Specifically: use the original title, then express your view as a top level comment. If people agree with it, the comment is naturally voted up.
I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
71–80 of 261 posts
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#72Earlier quoted context omitted.
Clearly they should only editorialize the ones that are wrong.
That doesn't help, HN mods still "correct" it back to the wrong title even in that case.
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#73Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#74Flushing in this case is from the SSDs internal DRAM cache to the actual NAND flash?
After that command it should be 100% safe to pull the power because everything SHOULD have been written to flash. That’s the point of the command.
It’s interesting that the drives that do it wrong still take time indicating they’re doing something.
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#75Earlier quoted context omitted.
That doesn't help, HN mods still "correct" it back to the wrong title even in that case.
So is it the mods who are editing titles of articles to be more sensational and clickbait-y? Because this happens all the damn time, flagging does nothing, etc.
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#76We shipped a shader cache in the latest release of OBS and quickly had reports come in that the cached data was invalid. After investigating, the cache files were the correct size on disk but the contents were all zero. On a journaled file system this seems like it should be impossible, so the current guess is that some users have SSDs that are ignoring flushes and experience data corruption on crash / power loss.
I think this is typical behaviour with ext4 on Linux, if the application doesn't do fsync/fdatasync to flush the data to disk. Depending on mount options, ext4fs does metadata journaling ensuring the FS itself is not borked, but not data journaling which would safeguard the file contents in event of unclean shutdown with pending writes in the caches. The same phenomenon is at play when people complain that their log…
Getting back zeroes after a metadata sync (which must follow a data sync) would accordingly be an indication of something weird having happened at the disk level: We'd expect to either see no data at all, or correct data, but not zeroes or any other file's or previously written stale data.
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#77Does advertising a product as adhering to some standard, but secretly knowing that it doesn't 100%, count as e.g. fraud? I.e., is there any established case law on the matter? I'm thinking of this example, but also more generally USB devices, Bluetooth devices, etc.
It might be a different story if the spec was intentionally violated, though (rather than incidentally, i.e. due to an idea that should have been transparent/indistinguishable externally but didn't work out).
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#78We shipped a shader cache in the latest release of OBS and quickly had reports come in that the cached data was invalid. After investigating, the cache files were the correct size on disk but the contents were all zero. On a journaled file system this seems like it should be impossible, so the current guess is that some users have SSDs that are ignoring flushes and experience data corruption on crash / power loss.
I think this is typical behaviour with ext4 on Linux, if the application doesn't do fsync/fdatasync to flush the data to disk. Depending on mount options, ext4fs does metadata journaling ensuring the FS itself is not borked, but not data journaling which would safeguard the file contents in event of unclean shutdown with pending writes in the caches. The same phenomenon is at play when people complain that their log…
There was a point where ext3 defaulted to data=writeback, which can definitely give you files full of null bytes.
And data=journal exists but is overkill for this situation.
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#79Earlier quoted context omitted.
I think this is typical behaviour with ext4 on Linux, if the application doesn't do fsync/fdatasync to flush the data to disk. Depending on mount options, ext4fs does metadata journaling ensuring the FS itself is not borked, but not data journaling which would safeguard the file contents in event of unclean shutdown with pending writes in the caches. The same phenomenon is at play when people complain that their log…
I don't think that's how it works: Flushing metadata before data would be a security concern (consider e.g. the metadata change of increasing a file's length due to an append before the data change itself), so file systems usually only ever do the opposite, which is safe. Getting back zeroes after a metadata sync (which must follow a data sync) would accordingly be an indication of something weird having happened at…
I seem to vaguely recall an issue like that, for ext4 in particular. Of course it's possible in general for any filesystem that supports holes, but I don't think we can necessarily assume that the data is always written, and all the pointers to it also written, before the file-size gets updated.
Re: I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
#80Does advertising a product as adhering to some standard, but secretly knowing that it doesn't 100%, count as e.g. fraud? I.e., is there any established case law on the matter? I'm thinking of this example, but also more generally USB devices, Bluetooth devices, etc.
For extra fun: if the box carries a trademark from a standards group, you could try adding them into the suit; use of their trademarked logo could be argued to be implied fitness, if there are standards the drive is supposed to meet to use it.
At the very least they might get tired of the expense of the expense of sending someone to defend the claim, and it would cease to be profitable to engage in this scammery.