主权项 |
1. A method for implementing a power protection caching policy of an information handling system comprising:
querying a solid-state drive (SSD) of the information handling system, wherein the SSD does not include dynamic random access memory (DRAM) local to the SSD; returning, by the SSD, one or more supported caching modes of the SSD; determining if the SSD supports the power protection caching policy based, at least in part, on the one or more supported caching modes; determining a risk of power failure, wherein the risk of power failure is based, at least in part, on one or more risk parameters; setting one or more attributes of the power protection caching policy based, at least in part on, the determined risk of power failure; determining if an indicator is indicative of a power failure; and applying the power protection caching policy, wherein the power protection caching policy comprises:
issuing a flush cache signal by a controller of the information handling system to the SSD;issuing a command by the SSD to flush one or more dirty cache lines; andflushing the one or more dirty cache lines. |