← Back to context

Comment by Cthulhu_

3 years ago

> Then they coupled in "shutdown on low battery" and refuse to allow it to be disabled.

Isn't that to protect user's data? There's been numerous reports that modern-day high performance SSD's don't actually neatly write data to physical storage after a flush command; I wouldn't want to lose data if my system unexpectedly shuts down due to power / voltage issues.

Or is there additional low power protections at a hardware level?

That could be the reason why it's done, and maybe it's helpful in such cases.

But what if I have some "pro-grade" SSD that doesn't need this? What if I have some huge battery that lasts for 2 hours when there's only 2% left?

Point is that the user should be able to have the final word, even if the default looks to be helpful.

we have journalled filesystems these days, even without hardware protections it does not mean the machine should forcefully make decisions for us.

Depending on the brand of flash storage, there are power loss protections (the same as harddisks, actually) where a little capacitor stores enough charge to park the head or flush the DRAM component of the flash to SLC solid flash storage.. if you have a huge write in progress (enough to blow the SLC cache and the NAND cache) then you might lose that write.