4 ms·
> Is there a standard for PSU's about how long they provide power, that SSDs could design to? Yes. The ATX power supply spec has timing requirements for the PW
by wtallis 6y ago
> Is there a standard for PSU's about how long they provide power, that SSDs could design to?
Yes. The ATX power supply spec has timing requirements for the PWR_OK signal. As described on Wikipedia:
> The ATX specification requires that the power-good signal ("PWR_OK") [...] remain high for 16 ms after loss of AC power, and fall (to less than 0.4 V) at least 1 ms before the power rails fall out of specification (to 95% of their nominal value).
So power supplies are expected to continue operating through roughly a single missing cycle of AC power, but they only have to give the system 1ms of warning when power is going out. This signal would have to be delivered to the SSD by software in the form of a shutdown notification (a write to a particular NVMe register).
And now that I think about it, that shutdown notification mechanism probably warrants inclusion in the article.
- fulafel 6y agoI see, didn't even know that the original ATX spec made any promises, I guess 1 ms is "something", strictly speaking :) I was hoping for a post-1995, more usable spec since we know that current PSUs often do provide power longer than 1 ms. A single AC cycle would be 16-20 milliseconds which could already be doable if the SSD got the signal right away without OS involvement.
- wtallis 6y agoI'm not sure that bit actually comes from the original ATX spec; Wikipedia seems to indicate it showed up in ATX 2.31 in February 2008. It does also appear to be consistent with the very recent Intel ATX12VO spec.